KevinnZou/compose-webview-multiplatform

Desktop evaluateJavaScript is not work?

Opened this issue · 1 comments

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