This commit is contained in:
Vick Scarlet
2021-08-20 11:34:54 +08:00
parent f193389455
commit a3cc5821f7
2 changed files with 2 additions and 2 deletions

View File

@@ -445,7 +445,7 @@ class App{
});
}
get times() {return JSON.parse(localStorage.times||'') || 0;}
get times() {return JSON.parse(localStorage.times||'0') || 0;}
set times(v) {localStorage.times = JSON.stringify(parseInt(v) || 0)};
}

View File

@@ -99,7 +99,7 @@ class Life {
}
talentRandom() {
return this.#talent.talentRandom(JSON.parse(localStorage.extendTalent||''));
return this.#talent.talentRandom(JSON.parse(localStorage.extendTalent||'null'));
}
talentExtend(talentId) {