1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-06 09:20:43 +01: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);
}
}
}