mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Use the exposed cancel selector instead of hardcoded one
This commit is contained in:
parent
912ed1eeb6
commit
561fac7bfc
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ const bootstrap = ()=> {
|
||||||
|
|
||||||
// Configure checkout buttons
|
// Configure checkout buttons
|
||||||
jQuery( document.body ).on( 'updated_checkout', () => {
|
jQuery( document.body ).on( 'updated_checkout', () => {
|
||||||
if ( jQuery('.ppcp-cancel').length ) {
|
if (document.querySelector(PayPalCommerceGateway.button.cancel_wrapper)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue