mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-06-16 11:14:50 -04:00
Build 29087244
This commit is contained in:
parent
5ba93500b4
commit
49f3769b54
21 changed files with 2505 additions and 2517 deletions
|
@ -140,16 +140,15 @@ migrate("set_breakout_71_unlocked_levels" + _appVersion, () => {
|
|||
);
|
||||
});
|
||||
|
||||
migrate('clean_ls', ()=>{
|
||||
for (let key in localStorage) {
|
||||
migrate("clean_ls", () => {
|
||||
for (let key in localStorage) {
|
||||
try {
|
||||
JSON.parse(localStorage.getItem(key) || "null");
|
||||
JSON.parse(localStorage.getItem(key) || "null");
|
||||
} catch (e) {
|
||||
localStorage.removeItem(key)
|
||||
console.warn('Removed invalid key '+key,e);
|
||||
localStorage.removeItem(key);
|
||||
console.warn("Removed invalid key " + key, e);
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
});
|
||||
|
||||
afterMigration();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue