mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
💄 Hide spinner when smart buttons are deactivated
This commit is contained in:
parent
5e4157d488
commit
3200b05e48
1 changed files with 4 additions and 0 deletions
|
@ -324,6 +324,10 @@ const bootstrap = () => {
|
||||||
messagesBootstrap.init();
|
messagesBootstrap.init();
|
||||||
|
|
||||||
apmButtonsInit( PayPalCommerceGateway );
|
apmButtonsInit( PayPalCommerceGateway );
|
||||||
|
|
||||||
|
if ( ! renderer.useSmartButtons ) {
|
||||||
|
buttonsSpinner.unblock();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
document.addEventListener( 'DOMContentLoaded', () => {
|
document.addEventListener( 'DOMContentLoaded', () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue