mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
Revert "render if updated_checkout event was missed"
This reverts commit e3577bdff9
.
This commit is contained in:
parent
e3577bdff9
commit
a984853b5f
2 changed files with 0 additions and 8 deletions
|
@ -79,11 +79,6 @@ document.addEventListener(
|
|||
}
|
||||
const script = document.createElement('script');
|
||||
|
||||
PayPalCommerceGateway.checkoutUpdatedFlag = false;
|
||||
jQuery(document.body).on('updated_checkout', () => {
|
||||
PayPalCommerceGateway.checkoutUpdatedFlag = true;
|
||||
});
|
||||
|
||||
script.addEventListener('load', (event) => {
|
||||
bootstrap();
|
||||
});
|
||||
|
|
|
@ -11,9 +11,6 @@ class CheckoutBootstap {
|
|||
|
||||
init() {
|
||||
|
||||
if(PayPalCommerceGateway.checkoutUpdatedFlag){
|
||||
this.render();
|
||||
}
|
||||
jQuery(document.body).on('updated_checkout', () => {
|
||||
this.render();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue