mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 14:10:00 +02:00
Refactor ZenWorkspaces.mjs to discard unloaded tabs when hiding workspace
This commit is contained in:
parent
d0f32a6ee8
commit
62c056b4d0
1 changed files with 2 additions and 0 deletions
|
@ -508,6 +508,8 @@ var ZenWorkspaces = {
|
||||||
}
|
}
|
||||||
for (let tab of gBrowser.tabs) {
|
for (let tab of gBrowser.tabs) {
|
||||||
if (tab.getAttribute('zen-workspace-id') !== window.uuid) {
|
if (tab.getAttribute('zen-workspace-id') !== window.uuid) {
|
||||||
|
// FOR UNLOADING TABS:
|
||||||
|
// gBrowser.discardBrowser(tab, true);
|
||||||
gBrowser.hideTab(tab, undefined, shouldAllowPinnedTabs);
|
gBrowser.hideTab(tab, undefined, shouldAllowPinnedTabs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue