Skip to content

Commit

Permalink
Prevent this.init() call in threebox constructor if feature flag is n…
Browse files Browse the repository at this point in the history
…ot turned on
  • Loading branch information
danjm committed Sep 12, 2019
1 parent 255a0c0 commit a203d58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/scripts/controllers/threebox.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ class ThreeBoxController {
this.store = new ObservableStore(initState)
this.registeringUpdates = false

this.init()
const threeBoxFeatureFlagTurnedOn = this.preferencesController.getFeatureFlags().threeBox

if (threeBoxFeatureFlagTurnedOn) {
this.init()
}
}

async init () {
Expand Down

0 comments on commit a203d58

Please sign in to comment.