Skip to content

Commit

Permalink
some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
officiallygod committed Oct 17, 2024
1 parent d324f9f commit dc31ebb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Installer/components/Modal/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ const Modal = ( { pluginName, pluginSlug, pluginURL, pluginActivate } ) => {
'X-NFD-INSTALLER': pluginInstallHash,
},
data: {
activate: pluginActivate === 'true' ? true : false,
queue: false,
priority: 0,
premium: true,
plugin: pluginSlug,
activate: pluginActivate,
},
} );
setPluginStatus( 'completed' );
Expand Down
10 changes: 6 additions & 4 deletions src/Scripts/dataAttrListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ domReady( () => {
document
.getElementById( INSTALLER_DIV )
.setAttribute(
'nfd-installer-ap__plugin--activate',
'nfd-installer-app__plugin--activate',
activate === 'true' ? true : false
);
window.dispatchEvent( new Event( 'installerParamsSet' ) );
Expand All @@ -54,21 +54,23 @@ domReady( () => {
) {
addedNode
.querySelectorAll(
'[data-nfd-installer-plugin-provider]'
'[data-nfd-installer-pls-provider]'
)
.forEach( ( ele ) => {
console.log("hereee");

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

View workflow job for this annotation

GitHub Actions / Run Lint Checks

Unexpected console statement

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

View workflow job for this annotation

GitHub Actions / Run Lint Checks

Replace `"hereee"` with `·'hereee'·`

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

View workflow job for this annotation

GitHub Actions / Run Lint Checks

Delete `↹↹↹↹↹↹↹↹`
ele.addEventListener( 'click', function ( e ) {
if (
e.target.getAttribute(
'data-nfd-installer-plugin-slug'
'data-nfd-installer-pls-slug'
) !== null
) {
renderModal(
this.getAttribute(
'data-nfd-installer-plugin-name'
),
this.getAttribute(
'data-nfd-installer-plugin-slug'
'data-nfd-installer-pls-slug'
),
this.getAttribute(
'data-nfd-installer-plugin-url'
Expand Down

0 comments on commit dc31ebb

Please sign in to comment.