From 747430a4dc0715d7bd2ef459b64092f2e5c469e1 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Wed, 25 Jan 2023 08:31:41 -0500 Subject: [PATCH] Removed hardcoded beestat API key (redux) --- js/component/card/contribute.js | 2 +- js/component/modal/download_data.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/component/card/contribute.js b/js/component/card/contribute.js index 9bbd7e1..d41493d 100644 --- a/js/component/card/contribute.js +++ b/js/component/card/contribute.js @@ -294,7 +294,7 @@ beestat.component.card.contribute.prototype.decorate_contents_ = function(parent .set_background_hover_color() .removeEventListener('click'); - window.open('api/?resource=stripe_payment_link&method=open&arguments={"attributes":{"amount":' + (contribute_amount * 100) + ',"currency":"' + beestat.setting('units.currency') + '","interval":"' + contribute_interval + '"}}&api_key=' + beestat.api.api_key); + window.open('api/?resource=stripe_payment_link&method=open&arguments={"attributes":{"amount":' + (contribute_amount * 100) + ',"currency":"' + beestat.setting('units.currency') + '","interval":"' + contribute_interval + '"}}&api_key=' + window.beestat_api_key_local); setTimeout(function() { self.rerender(); diff --git a/js/component/modal/download_data.js b/js/component/modal/download_data.js index 051d5e9..a045479 100644 --- a/js/component/modal/download_data.js +++ b/js/component/modal/download_data.js @@ -275,7 +275,7 @@ beestat.component.modal.download_data.prototype.get_buttons_ = function() { .format() }; - window.location.href = '/api/?resource=runtime&method=download&arguments=' + encodeURIComponent(JSON.stringify(download_arguments)) + '&api_key=' + beestat.api.api_key; + window.location.href = '/api/?resource=runtime&method=download&arguments=' + encodeURIComponent(JSON.stringify(download_arguments)) + '&api_key=' + window.beestat_api_key_local; self.dispose(); });