Storage: fix unsaved settings after restart
This commit is contained in:
parent
b6770c0d7a
commit
fdd0f7cfae
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue