diff --git a/client/gulpfile.babel.js b/client/gulpfile.babel.js index 53b88fe6..3692aaa9 100644 --- a/client/gulpfile.babel.js +++ b/client/gulpfile.babel.js @@ -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 diff --git a/client/lib/stores/donations.js b/client/lib/stores/donations.js index dc316c9a..9d8babea 100644 --- a/client/lib/stores/donations.js +++ b/client/lib/stores/donations.js @@ -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() {