save before loading new save
This commit is contained in:
parent
d2e0ab29f2
commit
e90aac51f2
1 changed files with 1 additions and 0 deletions
|
@ -181,6 +181,7 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
openSave(id: string) {
|
openSave(id: string) {
|
||||||
this.saves[player.id].time = player.time;
|
this.saves[player.id].time = player.time;
|
||||||
|
save();
|
||||||
loadSave(this.saves[id]);
|
loadSave(this.saves[id]);
|
||||||
const modData = JSON.parse(
|
const modData = JSON.parse(
|
||||||
decodeURIComponent(escape(atob(localStorage.getItem(modInfo.id)!)))
|
decodeURIComponent(escape(atob(localStorage.getItem(modInfo.id)!)))
|
||||||
|
|
Loading…
Reference in a new issue