Skip to content

Commit

Permalink
Fix browser window
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Jordan committed Oct 26, 2023
1 parent 6e57bbe commit a723add
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webApp/src/jsMain/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import androidx.compose.ui.input.key.onKeyEvent
import androidx.compose.ui.input.key.type
import androidx.compose.ui.layout.onSizeChanged
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.CanvasBasedWindow
import com.bumble.appyx.navigation.integration.ScreenSize
import com.bumble.appyx.navigation.integration.WebNodeHost
import com.bumble.livemosaic.node.app.LiveMosaicAppNode
Expand All @@ -32,10 +33,11 @@ import kotlinx.coroutines.flow.receiveAsFlow
import kotlinx.coroutines.launch
import org.jetbrains.skiko.wasm.onWasmReady

@OptIn(ExperimentalComposeUiApi::class)
fun main() {
val events: Channel<Unit> = Channel()
onWasmReady {
BrowserViewportWindow() {
CanvasBasedWindow {
LiveMosaicTheme {
val requester = remember { FocusRequester() }
var hasFocus by remember { mutableStateOf(false) }
Expand Down

0 comments on commit a723add

Please sign in to comment.