mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
no-bug - Fixed restoring pinned tabs having the wrong favicon, c=tabs, t=fix
This commit is contained in:
@@ -624,7 +624,7 @@
|
||||
// Remove everything except the entry we want to keep
|
||||
state.entries = [state.entries[foundEntryIndex]];
|
||||
}
|
||||
state.image = pin.iconUrl || null;
|
||||
state.image ||= pin.iconUrl || null;
|
||||
state.index = 0;
|
||||
|
||||
SessionStore.setTabState(tab, state);
|
||||
@@ -765,19 +765,6 @@
|
||||
document.getElementById('context_pinTab')?.before(element);
|
||||
}
|
||||
|
||||
// TODO: remove this as it's not possible to know the base pinned url any more as it's now stored in tab state
|
||||
resetPinnedTabData(tabData) {
|
||||
if (
|
||||
lazy.zenPinnedTabRestorePinnedTabsToPinnedUrl &&
|
||||
tabData.pinned &&
|
||||
tabData.zenPinnedEntry
|
||||
) {
|
||||
tabData.entries = [JSON.parse(tabData.zenPinnedEntry)];
|
||||
tabData.image = tabData.zenPinnedIcon;
|
||||
tabData.index = 0;
|
||||
}
|
||||
}
|
||||
|
||||
updatePinnedTabContextMenu(contextTab) {
|
||||
if (!this.enabled) {
|
||||
document.getElementById('context_pinTab').hidden = true;
|
||||
|
Reference in New Issue
Block a user