Add locations for block, do not load non-block scripts on block pages

This commit is contained in:
Alex P 2023-03-29 20:15:42 +03:00
parent dc3fde5abf
commit bfaf05a96e
No known key found for this signature in database
GPG key ID: 54487A734A204D71
7 changed files with 89 additions and 9 deletions

View file

@ -163,7 +163,7 @@ registerExpressPaymentMethod({
content: <PayPalComponent/>,
edit: <b>TODO: editing</b>,
ariaLabel: config.title,
canMakePayment: () => true,
canMakePayment: () => config.enabled,
supports: {
features: ['products'],
},