@33cn/wallet-js-bridge
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -103,3 +103,2 @@ "use strict"; | ||
if ("function" == typeof c) { | ||
//document.write("window.dscb=>" + window.dscb) | ||
var g = "dscb" + window.dscb++; | ||
@@ -110,6 +109,2 @@ win[g] = c; | ||
a = JSON.stringify(a); | ||
if (c) { | ||
//document.write("window._dsbridge=>", window._dsbridge.call(b, a)); | ||
// document.write(b, ",", a, ",", c, ",", String(window.dscb)); | ||
} | ||
if (window._dsbridge) | ||
@@ -137,7 +132,5 @@ e = window._dsbridge.call(b, a); | ||
Android_registerAsyn(b, a) { | ||
document.write("22222222"); | ||
this.Android_register(b, a, !0); | ||
} | ||
Android_hasNativeMethod(b, a) { | ||
document.write("33333333333"); | ||
return this.Android_call("_dsb.hasNativeMethod", { | ||
@@ -149,3 +142,2 @@ name: b, | ||
Android_disableJavascriptDialogBlock(b) { | ||
document.write("444444444"); | ||
this.Android_call("_dsb.disableJavascriptDialogBlock", { | ||
@@ -152,0 +144,0 @@ disable: !1 !== b |
{ | ||
"name": "@33cn/wallet-js-bridge", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
# fe33cn_libs_ts | ||
wallet项目的jsbridge | ||
当前仅限于wallet项目的jsbridge | ||
@@ -5,0 +5,0 @@ ``` bash |
@@ -128,3 +128,2 @@ const ANDROID = 1; | ||
if ("function" == typeof c) { | ||
//document.write("window.dscb=>" + window.dscb) | ||
var g = "dscb" + window.dscb++; | ||
@@ -135,6 +134,2 @@ win[g] = c; | ||
a = JSON.stringify(a); | ||
if(c){ | ||
//document.write("window._dsbridge=>", window._dsbridge.call(b, a)); | ||
// document.write(b, ",", a, ",", c, ",", String(window.dscb)); | ||
} | ||
if (window._dsbridge) e = window._dsbridge.call(b, a); | ||
@@ -160,7 +155,5 @@ else if (window._dswk || -1 != navigator.userAgent.indexOf("_dsbridge")) e = prompt("_dsbridge=" + b, a); | ||
Android_registerAsyn(b: any, a: any) { | ||
document.write("22222222"); | ||
this.Android_register(b, a, !0) | ||
} | ||
Android_hasNativeMethod(b: any, a: any) { | ||
document.write("33333333333"); | ||
return this.Android_call("_dsb.hasNativeMethod", { | ||
@@ -172,3 +165,2 @@ name: b, | ||
Android_disableJavascriptDialogBlock(b: any) { | ||
document.write("444444444"); | ||
this.Android_call("_dsb.disableJavascriptDialogBlock", { | ||
@@ -175,0 +167,0 @@ disable: !1 !== b |
45662
9
1246