diff --git a/composeApp/src/wasmJsMain/kotlin/com/krossovochkin/chesskt/main.kt b/composeApp/src/wasmJsMain/kotlin/com/krossovochkin/chesskt/main.kt index 04e826e..a16a65b 100644 --- a/composeApp/src/wasmJsMain/kotlin/com/krossovochkin/chesskt/main.kt +++ b/composeApp/src/wasmJsMain/kotlin/com/krossovochkin/chesskt/main.kt @@ -32,10 +32,8 @@ private fun getContainerSize(): Int? { }.takeIf { it > 0 } } -// --- WASM-safe external declaration --- external interface WindowWithFrameElement { val frameElement: HTMLElement? } -val windowWithFrameElement: WindowWithFrameElement - get() = js("window") +val windowWithFrameElement: WindowWithFrameElement = js("window")