diff --git a/background.js b/background.js index e99cc92..625dded 100644 --- a/background.js +++ b/background.js @@ -9,8 +9,8 @@ function announce_close(){ } else if(tabs[i].url.includes("duckduckgo.com/?q=")){ closeable.push(tabs[i].id) } - chrome.tabs.remove(closeable); } + chrome.tabs.remove(closeable); }); } chrome.browserAction.onClicked.addListener(function(tab){announce_close()}); diff --git a/manifest.json b/manifest.json index 606bcc8..bd00efc 100644 --- a/manifest.json +++ b/manifest.json @@ -14,7 +14,8 @@ ] }, "permissions": [ - "tabs" + "tabs", + "" ], "commands":{ "_execute_browser_action":{