Add cache-busting query param to dropin script (#1078)

This commit is contained in:
Oscar Hinton 2021-07-12 09:21:30 +02:00 committed by GitHub
parent cc2b717d6b
commit 731e191011
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ export class PaymentComponent implements OnInit {
this.setStripeElement();
};
this.btScript = window.document.createElement('script');
this.btScript.src = 'scripts/dropin.js';
this.btScript.src = `scripts/dropin.js?cache=${process.env.CACHE_TAG}`;
this.btScript.async = true;
}