mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 12:40:00 +00:00
fix(amazon-payments): use right url in production
This commit is contained in:
parent
271245f1e6
commit
dbce6f7676
1 changed files with 3 additions and 1 deletions
|
|
@ -24,7 +24,9 @@ function($scope, $rootScope, User, $http, Notification, ApiUrl) {
|
|||
$scope.deferredScripts = function(){
|
||||
|
||||
// Amazon Payments
|
||||
$.getScript('https://static-na.payments-amazon.com/OffAmazonPayments/us/sandbox/js/Widgets.js');
|
||||
var amazonPaymentsUrl = 'https://static-na.payments-amazon.com/OffAmazonPayments/us/' +
|
||||
(window.env.NODE_ENV === 'production' ? 'sandbox/' : '') + 'js/Widgets.js';
|
||||
$.getScript(amazonPaymentsUrl);
|
||||
|
||||
// Stripe
|
||||
$.getScript('//checkout.stripe.com/v2/checkout.js');
|
||||
|
|
|
|||
Loading…
Reference in a new issue