diff --git a/lib/component/webview/webview_component.dart b/lib/component/webview/webview_component.dart index 75b2299..520e9eb 100644 --- a/lib/component/webview/webview_component.dart +++ b/lib/component/webview/webview_component.dart @@ -344,7 +344,7 @@ class _WebViewComponent extends State callback: (jsMsgs) async { var jsMsg = jsMsgs[0]; print("Nowser_JS_nip04_decrypt $jsMsg"); - var jsonObj = jsonDecode(jsMsg.message); + var jsonObj = jsonDecode(jsMsg); var resultId = jsonObj["resultId"]; var msg = jsonObj["msg"]; if (msg != null && msg is Map) { @@ -411,7 +411,7 @@ class _WebViewComponent extends State callback: (jsMsgs) async { var jsMsg = jsMsgs[0]; print("Nowser_JS_nip44_decrypt $jsMsg"); - var jsonObj = jsonDecode(jsMsg.message); + var jsonObj = jsonDecode(jsMsg); var resultId = jsonObj["resultId"]; var msg = jsonObj["msg"]; if (msg != null && msg is Map) {