Commit 9a4072f8 authored by hewenhao's avatar hewenhao

feat: update

parent 5a44bd42
......@@ -47,12 +47,16 @@
if (isAndroid()) {
if (window.ReactNativeWebView) {
window.ReactNativeWebView.onMessage(JSON.stringify(data));
} else if (window.geekJsBridge) {
window.geekJsBridge.navigate(data.data);
} else {
window.location.href = data.data
}
} else {
if (window.ReactNativeWebView) {
window.ReactNativeWebView.postMessage(JSON.stringify(data));
} else if (window.geekJsBridge) {
window.geekJsBridge.navigate(data.data);
} else {
window.location.href = data.data
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment