mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-02-04 14:53:12 +08:00
bug fix
This commit is contained in:
@@ -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)};
|
||||
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user