diff --git a/skeletons/web-extension/background-script.js b/skeletons/web-extension/background-script.js index 769cff3040..ee22e1aed5 100644 --- a/skeletons/web-extension/background-script.js +++ b/skeletons/web-extension/background-script.js @@ -48,7 +48,7 @@ */ function updateTabAction(tabId){ chrome.storage.sync.get("options", function(data) { - if (!data.options.showTomster) { return; } + if (!data.options || !data.options.showTomster) { return; } chrome.pageAction.show(tabId); setActionTitle(tabId); });