Fix bug,上一个commit的f**k应该改成f**king
This commit is contained in:
parent
e663c15358
commit
4f7cf92fcd
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue