Skip to content

Commit

Permalink
Update dataAttrListener.js
Browse files Browse the repository at this point in the history
  • Loading branch information
officiallygod committed Oct 7, 2024
1 parent 2551c47 commit cfa90b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Scripts/dataAttrListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ domReady( () => {
typeof addedNode.querySelectorAll === 'function'
) {
addedNode
.querySelectorAll( '[data-nfd-plugin-provider]' )
.querySelectorAll( '[data-nfd-installer-plugin-provider]' )

Check failure on line 16 in src/Scripts/dataAttrListener.js

View workflow job for this annotation

GitHub Actions / Run Lint Checks

Replace `·'[data-nfd-installer-plugin-provider]'·` with `⏎↹↹↹↹↹↹↹↹'[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( {
url: installerAPI,
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,
Expand Down

0 comments on commit cfa90b2

Please sign in to comment.