mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +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
|
||||
jQuery( document.body ).on( 'updated_checkout', () => {
|
||||
if ( jQuery('.ppcp-cancel').length ) {
|
||||
if (document.querySelector(PayPalCommerceGateway.button.cancel_wrapper)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue