delete key after migrating

This commit is contained in:
torranx 2024-09-05 17:16:03 +08:00
parent 21c4c3b12d
commit ce2b7969f4

View File

@ -860,6 +860,7 @@ export class GameData {
// TODO: Remove this block after save migration is implemented
if (settings.hasOwnProperty("REROLL_TARGET") && !settings.hasOwnProperty(SettingKeys.Shop_Cursor_Target)) {
settings[SettingKeys.Shop_Cursor_Target] = settings["REROLL_TARGET"];
delete settings["REROLL_TARGET"];
localStorage.setItem("settings", JSON.stringify(settings));
}
// End of block to remove