Skip to content

Commit

Permalink
Fix donation banner bugs
Browse files Browse the repository at this point in the history
- The HEIM_DONATION_URL variable was not properly propagated into the
  build.
- The donation store would race with the localStorage one for the
  latter's load event.
  • Loading branch information
CylonicRaider committed Dec 12, 2016
1 parent 7246c2f commit 0f87dff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const heimOptions = {
HEIM_PREFIX: process.env.HEIM_PREFIX || '',
EMBED_ORIGIN: process.env.EMBED_ORIGIN,
NODE_ENV: process.env.NODE_ENV,
HEIM_DONATION_URL: process.env.HEIM_DONATION_URL,
}

// via https://github.com/tblobaum/git-rev
Expand Down
1 change: 1 addition & 0 deletions client/lib/stores/donations.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const store = module.exports.store = Reflux.createStore({
}
this.listenTo(storage.load, this.onStorageLoad)
this.listenTo(actions.sendMessage, this.onMessageSend)
if (storage.store.state !== null) this.onStorageLoad()
},

getInitialState() {
Expand Down

0 comments on commit 0f87dff

Please sign in to comment.