mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Group the mini-cart context bootstrapper
This commit is contained in:
parent
9fcc70f837
commit
a01866549c
1 changed files with 1 additions and 7 deletions
|
@ -15,7 +15,7 @@ const bootstrap = () => {
|
|||
);
|
||||
const context = PayPalCommerceGateway.context;
|
||||
|
||||
if (context === 'mini-cart') {
|
||||
if (context === 'mini-cart' || context === 'product') {
|
||||
const miniCartBootstap = new MiniCartBootstap(
|
||||
PayPalCommerceGateway,
|
||||
renderer,
|
||||
|
@ -30,14 +30,8 @@ const bootstrap = () => {
|
|||
PayPalCommerceGateway,
|
||||
renderer,
|
||||
);
|
||||
const miniCartBootstap = new MiniCartBootstap(
|
||||
PayPalCommerceGateway,
|
||||
renderer,
|
||||
defaultConfig,
|
||||
);
|
||||
|
||||
singleProductBootstap.init();
|
||||
miniCartBootstap.init();
|
||||
}
|
||||
|
||||
if (context === 'cart') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue