1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00:00

cleanup braintree stylesheet

This commit is contained in:
Kyle Spearrin
2018-07-20 17:37:16 -04:00
parent 93cec9a2d6
commit 24ee5c2d5d

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);
}
}
}