From fdd0f7cfae069c0a6c040ed85e5a9e7171910328 Mon Sep 17 00:00:00 2001 From: ikipatang <5412352+ikipatang@users.noreply.github.com> Date: Thu, 7 Dec 2017 19:55:55 +0100 Subject: [PATCH] Storage: fix unsaved settings after restart --- src/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage.js b/src/storage.js index 62a0a97..081b6f2 100644 --- a/src/storage.js +++ b/src/storage.js @@ -20,7 +20,7 @@ On startup, check whether we have stored settings. If we don't, then store the default settings. */ function checkStoredSettings(storedSettings) { - if (!storedSettings.storage) { + if (storedSettings.url === undefined) { browser.storage.local.set(storage); } }