Refactor ZenWorkspaces.mjs to discard unloaded tabs when hiding workspace

This commit is contained in:
mauro-balades 2024-09-14 11:34:26 +02:00
parent d0f32a6ee8
commit 62c056b4d0

View file

@ -508,6 +508,8 @@ var ZenWorkspaces = {
}
for (let tab of gBrowser.tabs) {
if (tab.getAttribute('zen-workspace-id') !== window.uuid) {
// FOR UNLOADING TABS:
// gBrowser.discardBrowser(tab, true);
gBrowser.hideTab(tab, undefined, shouldAllowPinnedTabs);
}
}