This commit is contained in:
libccy 2017-03-24 10:08:10 +08:00
parent 210a813ad5
commit d3ef6d1270
1 changed files with 0 additions and 4 deletions

View File

@ -5176,11 +5176,7 @@
} }
else{ else{
if(confirm('游戏似乎未正常载入,是否重置游戏?')){ if(confirm('游戏似乎未正常载入,是否重置游戏?')){
var noname_inited=localStorage.getItem('noname_inited');
localStorage.clear(); localStorage.clear();
if(noname_inited){
localStorage.setItem('noname_inited',noname_inited);
}
if(indexedDB) indexedDB.deleteDatabase(lib.configprefix+'data'); if(indexedDB) indexedDB.deleteDatabase(lib.configprefix+'data');
window.location.reload(); window.location.reload();
} }