By default, the side bar should only open at the current tab.

This commit is contained in:
buzz-lightsnack-2007 2024-04-27 09:56:52 +08:00
parent 4af1cc8e15
commit bd7d7a86b2

View file

@ -15,7 +15,7 @@ export default class Sidebar {
// Grab the current tab ID. // Grab the current tab ID.
Tabs.query({ active: true, currentWindow: true }, 0).then((TAB) => { 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; this.root = ((typeof PATH).includes(`str`)) ? PATH : chrome.sidePanel.getOptions(TAB.id).path;
}); });