更换贺报下载的方法26

This commit is contained in:
xuxingjun
2024-12-30 17:28:33 +08:00
parent e82d9823be
commit 4fc151fb3b
3 changed files with 35 additions and 10 deletions

View File

@@ -187,14 +187,13 @@ function appCallBack() {}
return window.WVJBCallbacks.push(callback)
}
window.WVJBCallbacks = [callback]
var WVJBIframe = {}
WVJBIframe = document.createElement('iframe')
var WVJBIframe = document.createElement('iframe')
WVJBIframe.style.display = 'none'
WVJBIframe.src = 'https://__bridge_loaded__'
document.documentElement.appendChild(WVJBIframe)
// setTimeout(function() {
setTimeout(function() {
document.documentElement.removeChild(WVJBIframe)
// }, 100)
}, 0)
}
}
@@ -244,8 +243,6 @@ function appCallBack() {}
return triggerCallHandler(method, params)
}
})
console.log('z合理',window.WebViewJavascriptBridge);
window.WebViewJavascriptBridge = null
})(window)
//notation: js file can only use this kind of comments