低版本webview添加提示

This commit is contained in:
shijian 2023-11-22 08:07:28 +08:00
parent 647e6b289b
commit de9d5755ec
1 changed files with 7 additions and 0 deletions

View File

@ -63458,5 +63458,12 @@ new Promise(resolve=>{
setAllPropertiesEnumerable(lib.element.Control.prototype); setAllPropertiesEnumerable(lib.element.Control.prototype);
setAllPropertiesEnumerable(lib.element.Client.prototype); setAllPropertiesEnumerable(lib.element.Client.prototype);
setAllPropertiesEnumerable(lib.element.NodeWS.prototype); setAllPropertiesEnumerable(lib.element.NodeWS.prototype);
const coreAndVersion=get.coreInfo();
const core=coreAndVersion[0],version=coreAndVersion[1];
if(core=='chrome'&&!isNaN(version)&&version<77){
const tip='检测到您的浏览器内核版本小于77请及时升级浏览器或手机webview内核';
console.warn(tip);
game.print(tip);
}
lib.init.init(); lib.init.init();
}); });