This commit is contained in:
libccy 2017-04-15 20:03:22 +08:00
parent d147a3fd87
commit f45b1e7a66
1 changed files with 7 additions and 4 deletions

View File

@ -6684,7 +6684,9 @@
localStorage.clear();
localStorage.setItem('noname_inited',true);
if(indexedDB) indexedDB.deleteDatabase(lib.configprefix+'data');
window.location.reload();
setTimeout(function(){
window.location.reload();
},200);
}
},
'确认退出',
@ -6702,7 +6704,9 @@
if(confirm('游戏似乎未正常载入,是否重置游戏?')){
localStorage.clear();
if(indexedDB) indexedDB.deleteDatabase(lib.configprefix+'data');
window.location.reload();
setTimeout(function(){
window.location.reload();
},200);
}
}
}
@ -7439,10 +7443,9 @@
delete window.resetGameTimeout;
if(!game.syncMenu){
delete window.resetExtension;
localStorage.removeItem(lib.configprefix+'disable_extension',true);
localStorage.removeItem(lib.configprefix+'disable_extension');
}
if(game.removeFile&&lib.config.brokenFile.length){
while(lib.config.brokenFile.length){
game.removeFile(lib.config.brokenFile.shift());