File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed
composeApp/src/desktopMain/kotlin/org/ooni/probe/ui/shared Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,9 @@ actual fun OoniWebView(
24
24
factory = {
25
25
controller.state = OoniWebViewController .State .Initializing
26
26
27
- println (" webview: factory" )
28
27
JFXPanel ().apply {
29
28
Platform .setImplicitExit(false ) // Otherwise, webView will not show the second time
30
29
Platform .runLater {
31
- println (" webview: factory runLater" )
32
30
33
31
val webView = WebView ().apply {
34
32
isVisible = true
@@ -101,9 +99,7 @@ actual fun OoniWebView(
101
99
},
102
100
modifier = modifier,
103
101
update = { jfxPanel ->
104
- println (" webview: update" )
105
102
Platform .runLater {
106
- println (" webview: update runLater" )
107
103
val root = jfxPanel.scene?.root as ? StackPane
108
104
val webView = (root?.children?.get(0 ) as ? WebView ) ? : return @runLater
109
105
when (event) {
@@ -113,7 +109,6 @@ actual fun OoniWebView(
113
109
}
114
110
// Hack to send HTTP headers by taking advantage of userAgent
115
111
webView.engine.userAgent = " ooni$headers "
116
- println (" webview: Loading: ${event.url} " )
117
112
webView.engine.load(event.url)
118
113
}
119
114
You can’t perform that action at this time.
0 commit comments