Skip if a setting isn't present

This commit is contained in:
cmdr2 2022-11-12 17:24:48 +05:30 committed by GitHub
parent c17222dbe4
commit 98aefad249
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,6 +128,9 @@ function loadSettings() {
CURRENTLY_LOADING_SETTINGS = true
saved_settings.map(saved_setting => {
var setting = SETTINGS[saved_setting.key]
if (setting === undefined) {
continue
}
setting.ignore = saved_setting.ignore
if (!setting.ignore) {
setting.value = saved_setting.value