mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
🐛 Remove the empty Apple Pay wrapper
This commit is contained in:
parent
f5d4faba79
commit
8577594033
1 changed files with 6 additions and 0 deletions
|
@ -339,6 +339,12 @@ class ApplePayButton {
|
||||||
this.#isInitialized = true;
|
this.#isInitialized = true;
|
||||||
this.applePayConfig = config;
|
this.applePayConfig = config;
|
||||||
|
|
||||||
|
if ( this.isSeparateGateway ) {
|
||||||
|
document
|
||||||
|
.querySelectorAll( '#ppc-button-applepay-container' )
|
||||||
|
.forEach( ( el ) => el.remove() );
|
||||||
|
}
|
||||||
|
|
||||||
if ( ! this.isEligible ) {
|
if ( ! this.isEligible ) {
|
||||||
this.hide();
|
this.hide();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue