diff --git a/web/core/build.gradle.kts b/web/core/build.gradle.kts index f61f32d4b7..6c62fcaa44 100644 --- a/web/core/build.gradle.kts +++ b/web/core/build.gradle.kts @@ -24,6 +24,7 @@ kotlin { dependencies { implementation(compose.runtime) implementation(kotlin("stdlib-common")) + implementation("org.jetbrains.skiko:skiko:0.0.0-SNAPSHOT") } } diff --git a/web/core/src/jsMain/kotlin/org/jetbrains/compose/skiko/skiko.kt b/web/core/src/jsMain/kotlin/org/jetbrains/compose/skiko/skiko.kt index 2616672eec..3a7782022e 100644 --- a/web/core/src/jsMain/kotlin/org/jetbrains/compose/skiko/skiko.kt +++ b/web/core/src/jsMain/kotlin/org/jetbrains/compose/skiko/skiko.kt @@ -7,7 +7,10 @@ package org.jetbrains.compose.web.skiko import org.jetbrains.compose.web.dom.ElementScope import org.w3c.dom.HTMLCanvasElement +import org.jetbrains.skiko.wasm.onWasmReady fun ElementScope.ping() { - println("PING!!!") + onWasmReady { + println("PONG!!!") + } } \ No newline at end of file