Fix bug,上一个commit的f**k应该改成f**king

This commit is contained in:
shijian 2023-09-25 01:04:27 +08:00
parent e663c15358
commit 4f7cf92fcd
1 changed files with 6 additions and 0 deletions

View File

@ -10161,6 +10161,12 @@
let sScriptURL;
if(str.indexOf('http')==0) sScriptURL=str;
else if(str.startsWith('local:')){
if(lib.assetURL.length==0&&location.origin=='file://'&&typeof game.readFile=='undefined'){
const e=new Error('浏览器file协议下无法使用此api请在http/https协议下使用此api');
if(typeof onerror=='function') onerror(e);
else throw e;
return;
}
sScriptURL=lib.assetURL+str.slice(6);
}
else{