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:
parent
1c94dc8f09
commit
747430a4dc
@ -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();
|
||||
|
@ -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();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user