From aaec66d3143d4159d6dd3a053c206f9ac94791ff Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Mon, 8 Mar 2021 10:13:41 -0800 Subject: [PATCH] removed silly bug in for loop --- background.js | 2 +- manifest.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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":{