Remove localstorage setting migration
| @@ -299,7 +299,6 @@ export let context_presets = []; | |||
| 299 | const storage_keys = { | 299 | const 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', | ||
| 303 | 302 | ||
| 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.7 | 1414 | // 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); | ||
| 1419 | 1417 | ||
| 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 | } |
| 1429 | 1427 | ||
| 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 | } |