1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Removed hardcoded beestat API key (redux)

This commit is contained in:
Jon Ziebell 2023-01-25 08:31:41 -05:00
parent 1c94dc8f09
commit 747430a4dc
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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();
});