mirror of
https://github.com/zen-browser/desktop.git
synced 2026-07-17 22:21:04 +00:00
gh-14616: Fixed add to essentials being disabled (gh-14631)
This commit is contained in:
@@ -837,7 +837,7 @@ class nsZenPinnedTabManager extends nsZenDOMOperatedFeature {
|
||||
if (essentialTabsTarget) {
|
||||
if (gZenWorkspaces.containerSpecificEssentials) {
|
||||
const targetContainerId =
|
||||
gZenWorkspaces.getActiveWorkspaceFromCache().containerTabId;
|
||||
gZenWorkspaces.getActiveWorkspaceFromCache().containerTabId || 0;
|
||||
const sameContextId =
|
||||
(tab.getAttribute("usercontextid") || 0) == targetContainerId;
|
||||
if (!sameContextId && tab.hasAttribute("zen-essential")) {
|
||||
@@ -1022,7 +1022,7 @@ class nsZenPinnedTabManager extends nsZenDOMOperatedFeature {
|
||||
return (
|
||||
!(
|
||||
(tab.getAttribute("usercontextid") || 0) !=
|
||||
gZenWorkspaces.getActiveWorkspaceFromCache().containerTabId &&
|
||||
(gZenWorkspaces.getActiveWorkspaceFromCache().containerTabId || 0) &&
|
||||
gZenWorkspaces.containerSpecificEssentials
|
||||
) && gBrowser._numZenEssentials < this.maxEssentialTabs
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user