Fix loc bug

This commit is contained in:
oc 2019-01-11 21:43:42 +08:00
parent 8be8696229
commit 040b8b9de4
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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)