Skip to content

Commit 5259fa7

Browse files
committedJan 30, 2025··
Fixed loading tab animations
1 parent 9dd58ce commit 5259fa7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/browser/base/content/ZenUIManager.mjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ var gZenUIManager = {
2424
)
2525
).observe(document.getElementById('navigator-toolbox'));
2626

27-
window.addEventListener('DOMContentLoaded', () => {
27+
SessionStore.promiseAllWindowsRestored.then(() => {
2828
this._hasLoadedDOM = true;
29-
}, { once: true });
29+
});
3030

3131
window.addEventListener('TabClose', this.updateTabsToolbar.bind(this));
3232
},
@@ -218,7 +218,7 @@ var gZenVerticalTabsManager = {
218218
},
219219

220220
animateTab(aTab) {
221-
if (!gZenUIManager.motion || !aTab || !this._hasLoadedDOM) {
221+
if (!gZenUIManager.motion || !aTab || !gZenUIManager._hasLoadedDOM) {
222222
return;
223223
}
224224
// get next visible tab

0 commit comments

Comments
 (0)
Please sign in to comment.