Fix migration of settings.json

This commit is contained in:
Cohee
2023-07-04 11:41:15 +03:00
parent d6fd5455e6
commit 856b835172
2 changed files with 14 additions and 5 deletions

View File

@@ -610,6 +610,10 @@ function loadPowerUserSettings(settings, data) {
power_user.font_scale = Number(localStorage.getItem(storage_keys.font_scale) ?? 1);
power_user.blur_strength = Number(localStorage.getItem(storage_keys.blur_strength) ?? 10);
if (power_user.chat_display === '') {
power_user.chat_display = chat_styles.DEFAULT;
}
$('#trim_spaces').prop("checked", power_user.trim_spaces);
$('#continue_on_send').prop("checked", power_user.continue_on_send);
$('#auto_swipe').prop("checked", power_user.auto_swipe);