mirror of
https://github.com/bitwarden/web
synced 2025-12-06 00:03:28 +00:00
cleanup braintree stylesheet
This commit is contained in:
@@ -103,6 +103,10 @@ export class PaymentComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
if (!this.hidePaypal) {
|
if (!this.hidePaypal) {
|
||||||
window.document.head.removeChild(this.btScript);
|
window.document.head.removeChild(this.btScript);
|
||||||
|
const btStylesheet = window.document.head.querySelector('#braintree-dropin-stylesheet');
|
||||||
|
if (btStylesheet != null) {
|
||||||
|
window.document.head.removeChild(btStylesheet);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user