From 040b8b9de476100f21088d29a3be2f9d78ee1f24 Mon Sep 17 00:00:00 2001 From: oc Date: Fri, 11 Jan 2019 21:43:42 +0800 Subject: [PATCH] Fix loc bug --- libs/control.js | 4 ++-- libs/events.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/control.js b/libs/control.js index 10955157..60c56c49 100644 --- a/libs/control.js +++ b/libs/control.js @@ -2196,7 +2196,7 @@ control.prototype.doSL = function (id, type) { }); } if (id == 'autoSave' && core.saves.autosave.data != null) { - afterGet(core.saves.autosave.data); + afterGet(core.clone(core.saves.autosave.data)); } else { core.getLocalForage(id=='autoSave'?id:"save"+id, null, function(data) { @@ -2238,7 +2238,7 @@ control.prototype.doSL = function (id, type) { }); } if (id == 'autoSave' && core.saves.autosave.data != null) { - afterGet(core.saves.autosave.data); + afterGet(core.clone(core.saves.autosave.data)); } else { core.getLocalForage(id=='autoSave'?id:"save"+id, null, function(data) { diff --git a/libs/events.js b/libs/events.js index 0a1f4d00..2c00c849 100644 --- a/libs/events.js +++ b/libs/events.js @@ -301,7 +301,7 @@ events.prototype.gameOver = function (ending, fromReplay, norank) { doUpload(""); } else { - doUpload(prompt("请输入你的ID:", core.getCookie('id'))); + doUpload(prompt("请输入你的ID:", core.getCookie('id')||"")); } }, function () { if (main.isCompetition)