From cfa90b2fd680c8e1fc769f809d9ad52f69c4fce7 Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Mon, 7 Oct 2024 15:57:55 +0530 Subject: [PATCH] Update dataAttrListener.js --- src/Scripts/dataAttrListener.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Scripts/dataAttrListener.js b/src/Scripts/dataAttrListener.js index d8715cb..3af06ae 100644 --- a/src/Scripts/dataAttrListener.js +++ b/src/Scripts/dataAttrListener.js @@ -13,12 +13,12 @@ domReady( () => { typeof addedNode.querySelectorAll === 'function' ) { addedNode - .querySelectorAll( '[data-nfd-plugin-provider]' ) + .querySelectorAll( '[data-nfd-installer-plugin-provider]' ) .forEach( ( ele ) => { ele.addEventListener( 'click', function ( e ) { if ( e.target.getAttribute( - 'data-nfd-plugin-slug' + 'data-nfd-installer-plugin-slug' ) !== null ) { apiFetch( { @@ -26,11 +26,11 @@ domReady( () => { method: 'POST', data: { plugin: this.getAttribute( - 'data-nfd-plugin-slug' + 'data-nfd-installer-plugin-slug' ), activate: this.getAttribute( - 'data-nfd-plugin-activate' + 'data-nfd-installer-plugin-activate' ) === 'true' ? true : false,