mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
prevent connect paypal link default only when PAYPAL has not loaded yet
This commit is contained in:
parent
a7a74288ed
commit
9a127ced6a
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class OnboardingRenderer {
|
|||
);
|
||||
?>
|
||||
</a>
|
||||
<script>document.querySelector('[data-paypal-onboard-complete=onboardingCallback]').addEventListener('click', (e) => {e.preventDefault(); });</script>
|
||||
<script>document.querySelector('[data-paypal-onboard-complete=onboardingCallback]').addEventListener('click', (e) => {if ('undefined' === typeof PAYPAL ) e.preventDefault(); });</script>
|
||||
<script
|
||||
id="paypal-js"
|
||||
src="https://www.sandbox.paypal.com/webapps/merchantboarding/js/lib/lightbox/partner.js"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue