mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-20 06:21:00 +00:00
fix: Fixed restoring pinned tab to base url on startup not working, b=closes #12055, c=tabs
This commit is contained in:
@@ -76,6 +76,17 @@ class nsZenPinnedTabManager extends nsZenDOMOperatedFeature {
|
||||
this._zenClickEventListener = this._onTabClick.bind(this);
|
||||
|
||||
gZenWorkspaces._resolvePinnedInitialized();
|
||||
if (lazy.zenPinnedTabRestorePinnedTabsToPinnedUrl) {
|
||||
gZenWorkspaces.promiseInitialized.then(() => {
|
||||
for (const tab of gZenWorkspaces.allStoredTabs) {
|
||||
try {
|
||||
this.resetPinnedTab(tab);
|
||||
} catch (ex) {
|
||||
console.error("Error restoring pinned tab:", ex);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
log(message) {
|
||||
|
||||
Reference in New Issue
Block a user