mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-07 10:26:36 +00:00
Refactor pinned tab management to improve tab insertion logic and error handling
This commit is contained in:
@@ -267,9 +267,9 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||
// remove tab from list
|
||||
tabs.splice(tabs.indexOf(tab), 1);
|
||||
if (tab.pinned) {
|
||||
pinnedSection.appendChild(tab);
|
||||
pinnedSection.insertBefore(tab, pinnedSection.lastChild);
|
||||
} else {
|
||||
section.appendChild(tab);
|
||||
section.insertBefore(tab, section.lastChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user