This commit is contained in:
libccy 2016-03-28 12:52:29 +08:00
parent e6e779bd9b
commit 87f55feb01
1 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@
var noname_inited=localStorage.getItem('noname_inited'); var noname_inited=localStorage.getItem('noname_inited');
localStorage.clear(); localStorage.clear();
if(noname_inited){ if(noname_inited){
localStorage.setItem(noname_inited); localStorage.setItem('noname_inited',noname_inited);
} }
if(indexedDB) indexedDB.deleteDatabase('noname_0.9_data'); if(indexedDB) indexedDB.deleteDatabase('noname_0.9_data');
window.location.reload(); window.location.reload();
@ -1485,7 +1485,7 @@
var noname_inited=localStorage.getItem('noname_inited'); var noname_inited=localStorage.getItem('noname_inited');
localStorage.clear(); localStorage.clear();
if(noname_inited){ if(noname_inited){
localStorage.setItem(noname_inited); localStorage.setItem('noname_inited',noname_inited);
} }
game.reload(); game.reload();
return; return;
@ -15900,7 +15900,7 @@
var noname_inited=localStorage.getItem('noname_inited'); var noname_inited=localStorage.getItem('noname_inited');
localStorage.clear(); localStorage.clear();
if(noname_inited){ if(noname_inited){
localStorage.setItem(noname_inited); localStorage.setItem('noname_inited',noname_inited);
} }
for(var i in data){ for(var i in data){
localStorage.setItem(i,data[i]); localStorage.setItem(i,data[i]);
@ -23421,7 +23421,7 @@
var noname_inited=localStorage.getItem('noname_inited'); var noname_inited=localStorage.getItem('noname_inited');
localStorage.clear(); localStorage.clear();
if(noname_inited){ if(noname_inited){
localStorage.setItem(noname_inited); localStorage.setItem('noname_inited',noname_inited);
} }
if(indexedDB) indexedDB.deleteDatabase(lib.configprefix+'data'); if(indexedDB) indexedDB.deleteDatabase(lib.configprefix+'data');
game.reload(); game.reload();