[2023/09/14: Inchar] turn `game.importExtension` to async.

This commit is contained in:
Rintim 2023-09-14 00:31:18 +08:00
parent 9870c39857
commit 0eec9bcb51
1 changed files with 2 additions and 2 deletions

View File

@ -33692,7 +33692,7 @@
})(); })();
} }
}, },
importExtension:function(data,finishLoad,exportext,pkg){ importExtension:gnc.async(function*(data,finishLoad,exportext,pkg){
//by 来瓶可乐加冰 //by 来瓶可乐加冰
if(!window.JSZip){ if(!window.JSZip){
lib.init.js(lib.assetURL+'game','jszip',function(){ lib.init.js(lib.assetURL+'game','jszip',function(){
@ -33941,7 +33941,7 @@
return false; return false;
} }
}; };
}, }),
export:function(textToWrite,name){ export:function(textToWrite,name){
var textFileAsBlob = new Blob([textToWrite], {type:'text/plain'}); var textFileAsBlob = new Blob([textToWrite], {type:'text/plain'});
var fileNameToSaveAs = name||'noname'; var fileNameToSaveAs = name||'noname';