mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-17 10:27:10 +00:00
fix: Restrict promo creation to current workspace container, p=#11897
* fix: Restrict promo creation to current workspace container * Discard changes to src/zen/tabs/ZenEssentialsPromo.mjs * Discard changes to src/zen/workspaces/ZenWorkspaces.mjs --------- Signed-off-by: mr. m <91018726+mr-cheffy@users.noreply.github.com> Co-authored-by: mr. m <91018726+mr-cheffy@users.noreply.github.com>
This commit is contained in:
@@ -982,9 +982,6 @@
|
||||
return;
|
||||
}
|
||||
let essentialsPromoStatus = this.createZenEssentialsPromo();
|
||||
if (essentialsPromoStatus === "shown") {
|
||||
return;
|
||||
}
|
||||
this.clearDragOverVisuals();
|
||||
if (
|
||||
!draggedTab.hasAttribute("zen-essential") &&
|
||||
@@ -992,8 +989,11 @@
|
||||
) {
|
||||
return;
|
||||
}
|
||||
if (essentialsPromoStatus === "created") {
|
||||
return;
|
||||
let essentialsPromoStatus = this.createZenEssentialsPromo(draggedTab?.userContextId);
|
||||
switch (essentialsPromoStatus) {
|
||||
case "shown":
|
||||
case "created":
|
||||
return;
|
||||
}
|
||||
|
||||
if (!this._fakeEssentialTab) {
|
||||
|
||||
Reference in New Issue
Block a user