mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-19 03:17:13 +00:00
Fixed loading tab animations
This commit is contained in:
@@ -24,9 +24,9 @@ var gZenUIManager = {
|
||||
)
|
||||
).observe(document.getElementById('navigator-toolbox'));
|
||||
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
SessionStore.promiseAllWindowsRestored.then(() => {
|
||||
this._hasLoadedDOM = true;
|
||||
}, { once: true });
|
||||
});
|
||||
|
||||
window.addEventListener('TabClose', this.updateTabsToolbar.bind(this));
|
||||
},
|
||||
@@ -218,7 +218,7 @@ var gZenVerticalTabsManager = {
|
||||
},
|
||||
|
||||
animateTab(aTab) {
|
||||
if (!gZenUIManager.motion || !aTab || !this._hasLoadedDOM) {
|
||||
if (!gZenUIManager.motion || !aTab || !gZenUIManager._hasLoadedDOM) {
|
||||
return;
|
||||
}
|
||||
// get next visible tab
|
||||
|
||||
Reference in New Issue
Block a user