also check for null's from local storage

This commit is contained in:
Jason Calabrese
2015-09-01 12:21:08 -07:00
parent 77a1a4241c
commit 315a414ed0
+1 -1
View File
@@ -142,7 +142,7 @@ function init (client, plugins, serverSettings, $) {
try {
settings.eachSetting(function setEach (name) {
var stored = storage.get(name);
return stored !== undefined ? storage.get(name) : serverSettings.settings[name];
return stored !== undefined && stored !== null ? storage.get(name) : serverSettings.settings[name];
});
} catch(err) {
console.error(err);