Skip to content

Commit

Permalink
💬 Use this keyword instead of gDot in browser init
Browse files Browse the repository at this point in the history
  • Loading branch information
kierandrewett committed Sep 23, 2023
1 parent d034770 commit dc82b9f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions base/content/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ class BrowserApplication extends MozHTMLElement {
* Initialises the browser and its components
*/
init() {
if (gDot._done) {
if (this._done) {
throw new Error("Browser cannot be initialized twice!");
}

gDot.customizable = new BrowserCustomizable(this);
gDot.tabs = new BrowserTabs(window);
gDot.search = new BrowserSearch(window);
gDot.shortcuts = new BrowserShortcuts(window);
this.customizable = new BrowserCustomizable(this);
this.tabs = new BrowserTabs(window);
this.search = new BrowserSearch(window);
this.shortcuts = new BrowserShortcuts(window);

gDotRoutines.init();

Expand All @@ -122,7 +122,7 @@ class BrowserApplication extends MozHTMLElement {
);
});

gDot._done = true;
this._done = true;
}
}

Expand Down

0 comments on commit dc82b9f

Please sign in to comment.