mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-07 10:26:36 +00:00
Fixed unloading a tab on startup
This commit is contained in:
@@ -599,7 +599,11 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||
let showed = false;
|
||||
if (currentTab.pinned) {
|
||||
this.selectEmptyTab();
|
||||
gZenTabUnloader.explicitUnloadTabs([currentTab]);
|
||||
try {
|
||||
gZenTabUnloader.explicitUnloadTabs([currentTab]);
|
||||
} catch (e) {
|
||||
console.error('ZenWorkspaces: Error unloading tab', e);
|
||||
}
|
||||
showed = true;
|
||||
} else {
|
||||
const currentTabURL = currentTab.linkedBrowser?.currentURI?.spec;
|
||||
|
Reference in New Issue
Block a user