Storage: fix unsaved settings after restart

This commit is contained in:
ikipatang 2017-12-07 19:55:55 +01:00
parent b6770c0d7a
commit fdd0f7cfae

View file

@ -20,7 +20,7 @@ On startup, check whether we have stored settings.
If we don't, then store the default settings. If we don't, then store the default settings.
*/ */
function checkStoredSettings(storedSettings) { function checkStoredSettings(storedSettings) {
if (!storedSettings.storage) { if (storedSettings.url === undefined) {
browser.storage.local.set(storage); browser.storage.local.set(storage);
} }
} }