Fix loc bug
This commit is contained in:
parent
8be8696229
commit
040b8b9de4
@ -2196,7 +2196,7 @@ control.prototype.doSL = function (id, type) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (id == 'autoSave' && core.saves.autosave.data != null) {
|
if (id == 'autoSave' && core.saves.autosave.data != null) {
|
||||||
afterGet(core.saves.autosave.data);
|
afterGet(core.clone(core.saves.autosave.data));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
core.getLocalForage(id=='autoSave'?id:"save"+id, null, function(data) {
|
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) {
|
if (id == 'autoSave' && core.saves.autosave.data != null) {
|
||||||
afterGet(core.saves.autosave.data);
|
afterGet(core.clone(core.saves.autosave.data));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
core.getLocalForage(id=='autoSave'?id:"save"+id, null, function(data) {
|
core.getLocalForage(id=='autoSave'?id:"save"+id, null, function(data) {
|
||||||
|
|||||||
@ -301,7 +301,7 @@ events.prototype.gameOver = function (ending, fromReplay, norank) {
|
|||||||
doUpload("");
|
doUpload("");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
doUpload(prompt("请输入你的ID:", core.getCookie('id')));
|
doUpload(prompt("请输入你的ID:", core.getCookie('id')||""));
|
||||||
}
|
}
|
||||||
}, function () {
|
}, function () {
|
||||||
if (main.isCompetition)
|
if (main.isCompetition)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user