mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-03 08:28:38 +00:00
Fixed critical bug and updated to 1.7.4b
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
var gZenUIManager = {
|
||||
_popupTrackingElements: [],
|
||||
_hoverPausedForExpand: false,
|
||||
_hasLoadedDOM: false,
|
||||
|
||||
init() {
|
||||
document.addEventListener('popupshowing', this.onPopupShowing.bind(this));
|
||||
@@ -23,6 +24,10 @@ var gZenUIManager = {
|
||||
)
|
||||
).observe(document.getElementById('navigator-toolbox'));
|
||||
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
this._hasLoadedDOM = true;
|
||||
}, { once: true });
|
||||
|
||||
window.addEventListener('TabClose', this.updateTabsToolbar.bind(this));
|
||||
},
|
||||
|
||||
@@ -213,7 +218,7 @@ var gZenVerticalTabsManager = {
|
||||
},
|
||||
|
||||
animateTab(aTab) {
|
||||
if (!gZenUIManager.motion) {
|
||||
if (!gZenUIManager.motion || !aTab || !this._hasLoadedDOM) {
|
||||
return;
|
||||
}
|
||||
// get next visible tab
|
||||
|
Reference in New Issue
Block a user