Skip to content

Commit 0899621

Browse files
authored
fix: persist expanded glance tab after closing browser, p=#11336
* fix: persist expanded glance tab after closing browser * fix lint error
1 parent dfe932a commit 0899621

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/zen/glance/ZenGlanceManager.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,8 +1415,9 @@
14151415
this.overlay.classList.remove('zen-glance-overlay');
14161416
this.#clearContainerStyles(this.browserWrapper);
14171417
this.animatingFullOpen = false;
1418+
const glanceID = this.#currentGlanceID;
14181419
this.closeGlance({ noAnimation: true, skipPermitUnload: true });
1419-
this.#glances.delete(this.#currentGlanceID);
1420+
this.#glances.delete(glanceID);
14201421
}
14211422

14221423
/**

0 commit comments

Comments
 (0)