Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit f929b01

Browse files
committed
🐛 Store init state to ensure things don't break on cache
1 parent f5d57d8 commit f929b01

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/browser/base/content/browser-verticaltabs.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ var VerticalTabs = {
3939
/** @type {HTMLElement?} */
4040
tabBrowserTabs: null,
4141

42+
_initialized: false,
43+
4244
init() {
45+
if (this._initialized) {
46+
return
47+
}
48+
4349
this.arrowScrollbox = document.getElementById('tabbrowser-arrowscrollbox')
4450
this.tabBrowserTabs = document.getElementById('tabbrowser-tabs')
4551

@@ -48,6 +54,8 @@ var VerticalTabs = {
4854
if (this.verticalTabsEnabled) {
4955
this.enableVerticalTabs()
5056
}
57+
58+
this._initialized = true
5159
},
5260

5361
enableVerticalTabs() {

0 commit comments

Comments
 (0)