diff --git a/src/js/userconfig.js b/src/js/userconfig.js index 6c3d839e1..fc0d64499 100644 --- a/src/js/userconfig.js +++ b/src/js/userconfig.js @@ -169,6 +169,11 @@ function loadConfigFromCookie() { } function applyConfig(configObj) { + if (configObj == null || configObj == undefined) { + Misc.showNotification("Could not apply config", 1000); + console.error("configobj is null or undefined"); + return; + } Object.keys(defaultConfig).forEach((configKey) => { if (configObj[configKey] === undefined) { configObj[configKey] = defaultConfig[configKey];