mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
fix: Fixed glance crashing when trying to be closed, b=closes #9633, c=glance
This commit is contained in:
@@ -259,6 +259,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
const browserSidebarContainer = this.#currentParentTab?.linkedBrowser?.closest(
|
||||
'.browserSidebarContainer'
|
||||
);
|
||||
const sidebarButtons = this.browserWrapper.querySelector('.zen-glance-sidebar-container');
|
||||
if (onTabClose && hasFocused && !this.#confirmationTimeout && sidebarButtons) {
|
||||
const cancelButton = sidebarButtons?.querySelector('.zen-glance-sidebar-close');
|
||||
@@ -272,9 +275,7 @@
|
||||
|
||||
this.browserWrapper.removeAttribute('has-finished-animation');
|
||||
if (noAnimation) {
|
||||
this._clearContainerStyles(
|
||||
this.#currentParentTab?.linkedBrowser?.closest('.browserSidebarContainer')
|
||||
);
|
||||
this._clearContainerStyles(browserSidebarContainer);
|
||||
this.quickCloseGlance({ closeCurrentTab: false });
|
||||
return;
|
||||
}
|
||||
|
@@ -19,7 +19,7 @@
|
||||
"brandShortName": "Zen",
|
||||
"brandFullName": "Zen Browser",
|
||||
"release": {
|
||||
"displayVersion": "1.14.8b",
|
||||
"displayVersion": "1.14.9b",
|
||||
"github": {
|
||||
"repo": "zen-browser/desktop"
|
||||
},
|
||||
|
Reference in New Issue
Block a user