diff --git a/src/background.js b/src/background.js index 9c61344..e9e3b61 100644 --- a/src/background.js +++ b/src/background.js @@ -20,7 +20,7 @@ function openInPopup(url) { function shareCurrentTab(tab) { const url = tab.url; const title = tab.title || url; - browser.storage.local.get('url').then((storage) => { + browser.storage.local.get().then((storage) => { if(!storage.url){ browser.runtime.openOptionsPage(); return; diff --git a/src/storage.js b/src/storage.js index 20ae517..942fd9b 100644 --- a/src/storage.js +++ b/src/storage.js @@ -18,7 +18,7 @@ If we don't, then store the default settings. */ function checkStoredSettings(storedSettings) { if (!storedSettings.storage) { - browser.storage.local.set({storage}); + browser.storage.local.set(storage); } }