Skip to content

Commit cceaf9a

Browse files
Update main.kt (#7)
1 parent c9e434e commit cceaf9a

File tree

1 file changed

+1
-3
lines changed
  • composeApp/src/wasmJsMain/kotlin/com/krossovochkin/chesskt

1 file changed

+1
-3
lines changed

composeApp/src/wasmJsMain/kotlin/com/krossovochkin/chesskt/main.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@ private fun getContainerSize(): Int? {
3232
}.takeIf { it > 0 }
3333
}
3434

35-
// --- WASM-safe external declaration ---
3635
external interface WindowWithFrameElement {
3736
val frameElement: HTMLElement?
3837
}
3938

40-
val windowWithFrameElement: WindowWithFrameElement
41-
get() = js("window")
39+
val windowWithFrameElement: WindowWithFrameElement = js("window")

0 commit comments

Comments
 (0)