cleanup braintree stylesheet

This commit is contained in:
Kyle Spearrin 2018-07-20 17:37:16 -04:00
parent 93cec9a2d6
commit 24ee5c2d5d
1 changed files with 4 additions and 0 deletions

View File

@ -103,6 +103,10 @@ export class PaymentComponent implements OnInit {
});
if (!this.hidePaypal) {
window.document.head.removeChild(this.btScript);
const btStylesheet = window.document.head.querySelector('#braintree-dropin-stylesheet');
if (btStylesheet != null) {
window.document.head.removeChild(btStylesheet);
}
}
}