web signer bug fix

This commit is contained in:
DASHU
2024-12-07 18:59:58 +08:00
parent 45c58633e2
commit de9f04169b

View File

@@ -344,7 +344,7 @@ class _WebViewComponent extends State<WebViewComponent>
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<WebViewComponent>
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) {