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 // TODO: Remove this block after save migration is implemented
if (settings.hasOwnProperty("REROLL_TARGET") && !settings.hasOwnProperty(SettingKeys.Shop_Cursor_Target)) { if (settings.hasOwnProperty("REROLL_TARGET") && !settings.hasOwnProperty(SettingKeys.Shop_Cursor_Target)) {
settings[SettingKeys.Shop_Cursor_Target] = settings["REROLL_TARGET"]; settings[SettingKeys.Shop_Cursor_Target] = settings["REROLL_TARGET"];
delete settings["REROLL_TARGET"];
localStorage.setItem("settings", JSON.stringify(settings)); localStorage.setItem("settings", JSON.stringify(settings));
} }
// End of block to remove // End of block to remove