compose-webview-multiplatform
compose-webview-multiplatform copied to clipboard
Desktop evaluateJavaScript is not work?
val webViewNavigator = rememberWebViewNavigator()
val webViewState = rememberWebViewStateWithHTMLData(
data = MathHtmlContent
)
// not work
Button(onClick = {
webViewNavigator.evaluateJavaScript("callJS()", { msg ->
println(msg)
})
}) {
Text("Btn")
}
use webViewState.nativeWebView.evaluateJavaScript('****') success
Probably the same as this? https://github.com/KevinnZou/compose-webview-multiplatform/issues/246