This commit is contained in:
parent
d147a3fd87
commit
f45b1e7a66
11
game/game.js
11
game/game.js
|
@ -6684,7 +6684,9 @@
|
||||||
localStorage.clear();
|
localStorage.clear();
|
||||||
localStorage.setItem('noname_inited',true);
|
localStorage.setItem('noname_inited',true);
|
||||||
if(indexedDB) indexedDB.deleteDatabase(lib.configprefix+'data');
|
if(indexedDB) indexedDB.deleteDatabase(lib.configprefix+'data');
|
||||||
window.location.reload();
|
setTimeout(function(){
|
||||||
|
window.location.reload();
|
||||||
|
},200);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'确认退出',
|
'确认退出',
|
||||||
|
@ -6702,7 +6704,9 @@
|
||||||
if(confirm('游戏似乎未正常载入,是否重置游戏?')){
|
if(confirm('游戏似乎未正常载入,是否重置游戏?')){
|
||||||
localStorage.clear();
|
localStorage.clear();
|
||||||
if(indexedDB) indexedDB.deleteDatabase(lib.configprefix+'data');
|
if(indexedDB) indexedDB.deleteDatabase(lib.configprefix+'data');
|
||||||
window.location.reload();
|
setTimeout(function(){
|
||||||
|
window.location.reload();
|
||||||
|
},200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7439,10 +7443,9 @@
|
||||||
delete window.resetGameTimeout;
|
delete window.resetGameTimeout;
|
||||||
if(!game.syncMenu){
|
if(!game.syncMenu){
|
||||||
delete window.resetExtension;
|
delete window.resetExtension;
|
||||||
localStorage.removeItem(lib.configprefix+'disable_extension',true);
|
localStorage.removeItem(lib.configprefix+'disable_extension');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(game.removeFile&&lib.config.brokenFile.length){
|
if(game.removeFile&&lib.config.brokenFile.length){
|
||||||
while(lib.config.brokenFile.length){
|
while(lib.config.brokenFile.length){
|
||||||
game.removeFile(lib.config.brokenFile.shift());
|
game.removeFile(lib.config.brokenFile.shift());
|
||||||
|
|
Loading…
Reference in New Issue