before swim

This commit is contained in:
Peter Cottle 2013-01-07 12:31:51 -08:00
parent e55fba333d
commit 65c3f34b5f
2 changed files with 12 additions and 12 deletions

View file

@ -15441,14 +15441,14 @@ function LevelArbiter() {
this.levelMap = {}; this.levelMap = {};
this.init(); this.init();
var solvedMap = {}; var solvedMap;
try { try {
solvedMap = JSON.parse(localStorage.getItem('solvedMap')); solvedMap = JSON.parse(localStorage.getItem('solvedMap') || '{}');
} catch (e) { } catch (e) {
console.warn('local storage failed', e); console.warn('local storage failed', e);
throw e; // throw e;
} }
this.solvedMap = solvedMap; this.solvedMap = solvedMap || {};
Main.getEvents().on('levelSolved', this.levelSolved, this); Main.getEvents().on('levelSolved', this.levelSolved, this);
} }
@ -18859,14 +18859,14 @@ function LevelArbiter() {
this.levelMap = {}; this.levelMap = {};
this.init(); this.init();
var solvedMap = {}; var solvedMap;
try { try {
solvedMap = JSON.parse(localStorage.getItem('solvedMap')); solvedMap = JSON.parse(localStorage.getItem('solvedMap') || '{}');
} catch (e) { } catch (e) {
console.warn('local storage failed', e); console.warn('local storage failed', e);
throw e; // throw e;
} }
this.solvedMap = solvedMap; this.solvedMap = solvedMap || {};
Main.getEvents().on('levelSolved', this.levelSolved, this); Main.getEvents().on('levelSolved', this.levelSolved, this);
} }

View file

@ -12,14 +12,14 @@ function LevelArbiter() {
this.levelMap = {}; this.levelMap = {};
this.init(); this.init();
var solvedMap = {}; var solvedMap;
try { try {
solvedMap = JSON.parse(localStorage.getItem('solvedMap')); solvedMap = JSON.parse(localStorage.getItem('solvedMap') || '{}');
} catch (e) { } catch (e) {
console.warn('local storage failed', e); console.warn('local storage failed', e);
throw e; // throw e;
} }
this.solvedMap = solvedMap; this.solvedMap = solvedMap || {};
Main.getEvents().on('levelSolved', this.levelSolved, this); Main.getEvents().on('levelSolved', this.levelSolved, this);
} }