Console

!function(){var o={callHandler:function(){},registerHandler:function(){}},n=navigator.userAgent||navigator.vendor||window.opera;function e(){return/iPad|iPhone|iPod|Macintosh/i.test(n)&&!window.MSStream}window.isWebview=function(){return!0},window.callMSDK=function(n){e()?o.callHandler("jsCallNative",n,(function(){})):window.IMSDK?window.IMSDK.jsCallNative(n):console.log("android no IMSDK js support")},window.hideMsdkToolBar=function(){e()?o.callHandler("hideToolBar",!0,(function(){})):window.IMSDK?window.IMSDK.jsCallNative("{'hideToolBar': true}"):console.log("android no IMSDK js support")},window.showMsdkToolBar=function(){e()?o.callHandler("hideToolBar",!1,(function(){})):window.IMSDK?window.IMSDK.jsCallNative("{'hideToolBar': false}"):console.log("android no IMSDK js support")},e()&&function(o){if(window.WebViewJavascriptBridge)return o(WebViewJavascriptBridge);if(window.WVJBCallbacks)return window.WVJBCallbacks.push(o);window.WVJBCallbacks=[o];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement.appendChild(n),setTimeout((function(){document.documentElement.removeChild(n)}),0)}((function(n){n.registerHandler("IMSDKJSHandler",(function(o){console.log(o)})),o=n,setTimeout((function(){window.hideMsdkToolBar&&window.hideMsdkToolBar()}),20)})),setTimeout((function(){window.hideMsdkToolBar&&window.hideMsdkToolBar()}),200),window.addEventListener&&"function"==typeof window.addEventListener?window.addEventListener("load",(function(){window.hideMsdkToolBar&&window.hideMsdkToolBar()}),!1):window.attachEvent&&"function"==typeof window.attachEvent&&window.attachEvent("onload",(function(){window.hideMsdkToolBar&&window.hideMsdkToolBar()}))}();var o=this;o.isIniMSDKBrowser=()=>!0,"object"==typeof exports&&"undefined"!=typeof module?module.exports=o:"function"==typeof define&&define.amd?define(["exports"],(function(n){n.isIniMSDKBrowser=o.isIniMSDKBrowser})):(globalThis||self).commIMSDK=o;

Comments

Popular Posts