From bd7d7a86b2df28ea9ed562e729a242e0e0add2c5 Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Sat, 27 Apr 2024 09:56:52 +0800 Subject: [PATCH] By default, the side bar should only open at the current tab. --- scripts/GUI/sidepanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/GUI/sidepanel.js b/scripts/GUI/sidepanel.js index 6bc7e6d..be8d018 100644 --- a/scripts/GUI/sidepanel.js +++ b/scripts/GUI/sidepanel.js @@ -15,7 +15,7 @@ export default class Sidebar { // Grab the current tab ID. Tabs.query({ active: true, currentWindow: true }, 0).then((TAB) => { - chrome.sidePanel.open({windowId: TAB.id}); + chrome.sidePanel.open({"tabId": TAB.id}); this.root = ((typeof PATH).includes(`str`)) ? PATH : chrome.sidePanel.getOptions(TAB.id).path; });