Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Commit

Permalink
Return early if browser.theme.onUpdated is undefined (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
nt1m authored and eoger committed May 1, 2018
1 parent cc216b2 commit 323d8d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sidebar/tabcenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ TabCenter.prototype = {
}
},
set _themeIntegration(enabled) {
if (!browser.theme.onUpdated) {
return;
}
if (!enabled) {
this._resetTheme();
if (browser.theme.onUpdated.hasListener(this._themeListener)) {
Expand Down

0 comments on commit 323d8d5

Please sign in to comment.