mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Improve the JS click event
This commit is contained in:
parent
554ae57cb1
commit
2bb8ea9246
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ document.addEventListener(
|
|||
|
||||
const clearDbConfig = config.clearDb;
|
||||
|
||||
jQuery(document).on('click', clearDbConfig.button, function () {
|
||||
document.querySelector(clearDbConfig.button)?.addEventListener('click', function () {
|
||||
const isConfirmed = confirm(clearDbConfig.confirmationMessage);
|
||||
if (!isConfirmed) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue