Skip to content

Commit 1c1ba8b

Browse files
committed
Revise Stripe hack to actually exclude running *all* Stripe JS unless HTTPS
1 parent d23c152 commit 1c1ba8b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

themes/jquery/js/plugins.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,13 @@ window.matchMedia=window.matchMedia||(function(e,f){var c,a=e.documentElement,b=
5656

5757

5858

59+
60+
// Temporary hack to make Stripe not load except where we might actually use it.
61+
if (window.location.protocol === "https:") {
5962
/* Stripe
6063
* https://checkout.stripe.com/v2/checkout.js
6164
*/
62-
// Temporary hack to make Stripe not load except where we might actually use it.
63-
window.location.protocol === "https:" && (function() {
65+
(function() {
6466

6567
this.StripeCheckout = {};
6668

@@ -1370,3 +1372,4 @@ if (!JSON) {
13701372
})();
13711373

13721374
}).call(this);
1375+
}

0 commit comments

Comments
 (0)