Fix the bug with Settings.fixSiteSettings()

This commit is contained in:
Tamius Han 2020-03-01 21:52:36 +01:00
parent aba099d577
commit 1c978e61b7

View File

@ -290,16 +290,16 @@ class Settings {
sites[site].mode = ExtensionMode.Default;
}
if (sites[site].autoar === undefined) {
sites[site].mode = ExtensionMode.Default;
sites[site].autoar = ExtensionMode.Default;
}
if (sites[site].stretch === undefined) {
sites[site].mode = Stretch.Default;
sites[site].stretch = Stretch.Default;
}
if (sites[site].videoAlignment === undefined) {
sites[site].mode = VideoAlignment.Default;
sites[site].videoAlignment = VideoAlignment.Default;
}
if (sites[site].keyboardShortcutsEnabled === undefined) {
sites[site].mode = ExtensionMode.Default;
sites[site].keyboardShortcutsEnabled = ExtensionMode.Default;
}
}
}