mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
fix(amazon-payments): use right url in production
This commit is contained in:
@@ -24,7 +24,9 @@ function($scope, $rootScope, User, $http, Notification, ApiUrl) {
|
|||||||
$scope.deferredScripts = function(){
|
$scope.deferredScripts = function(){
|
||||||
|
|
||||||
// Amazon Payments
|
// 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
|
// Stripe
|
||||||
$.getScript('//checkout.stripe.com/v2/checkout.js');
|
$.getScript('//checkout.stripe.com/v2/checkout.js');
|
||||||
|
|||||||
Reference in New Issue
Block a user