mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix wrapper call
This commit is contained in:
parent
7e6d4c8a14
commit
3d6b2b0bb2
1 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,8 @@ import ApplepayManager from "./ApplepayManager";
|
|||
return;
|
||||
}
|
||||
const isMiniCart = ppcpConfig.mini_cart_buttons_enabled;
|
||||
const isButton = jQuery(buttonConfig.button.cart_wrapper).length > 0;
|
||||
const isButton = jQuery(buttonConfig.button.wrapper).length > 0;
|
||||
console.log('isbutton' ,isButton, buttonConfig.button.wrapper)
|
||||
// If button wrapper is not present then there is no need to load the scripts.
|
||||
// minicart loads later?
|
||||
if (!isMiniCart && !isButton) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue