Remove localstorage setting migration

fa054520b6a0b55f75537e74f165a0a84ce06b72

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +0 -7Ignore whitespace
public/scripts/power-user.js+0 -7
@@ -299,7 +299,6 @@ export let context_presets = [];
299const storage_keys = {299const storage_keys = {
300 auto_connect_legacy: 'AutoConnectEnabled',300 auto_connect_legacy: 'AutoConnectEnabled',
301 auto_load_chat_legacy: 'AutoLoadChatEnabled',301 auto_load_chat_legacy: 'AutoLoadChatEnabled',
302 hideChatAvatars_legacy: 'hideChatAvatarsEnabled',
303302
304 storyStringValidationCache: 'StoryStringValidationCache',303 storyStringValidationCache: 'StoryStringValidationCache',
305};304};
@@ -1415,7 +1414,6 @@ async function loadPowerUserSettings(settings, data) {
1415 // These are still local storage. Delete in 1.12.71414 // These are still local storage. Delete in 1.12.7
1416 const autoLoadChat = localStorage.getItem(storage_keys.auto_load_chat_legacy);1415 const autoLoadChat = localStorage.getItem(storage_keys.auto_load_chat_legacy);
1417 const autoConnect = localStorage.getItem(storage_keys.auto_connect_legacy);1416 const autoConnect = localStorage.getItem(storage_keys.auto_connect_legacy);
1418 const hideChatAvatars = localStorage.getItem(storage_keys.hideChatAvatars_legacy);
14191417
1420 if (autoLoadChat) {1418 if (autoLoadChat) {
1421 power_user.auto_load_chat = autoLoadChat === 'true';1419 power_user.auto_load_chat = autoLoadChat === 'true';
@@ -1427,11 +1425,6 @@ async function loadPowerUserSettings(settings, data) {
1427 localStorage.removeItem(storage_keys.auto_connect_legacy);1425 localStorage.removeItem(storage_keys.auto_connect_legacy);
1428 }1426 }
14291427
1430 if (hideChatAvatars) {
1431 power_user.hideChatAvatars_enabled = hideChatAvatars === 'true';
1432 localStorage.removeItem(storage_keys.hideChatAvatars_legacy);
1433 }
1434
1435 if (power_user.chat_display === '') {1428 if (power_user.chat_display === '') {
1436 power_user.chat_display = chat_styles.DEFAULT;1429 power_user.chat_display = chat_styles.DEFAULT;
1437 }1430 }