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 14, 2024
1 parent b19c54d commit bf5b754
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Scripts/dataAttrListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ domReady( () => {
// }

function renderModal( pluginName, pluginSlug, pluginURL, activate ) {
// Don't make requests if values not provided.
if (
'' === pluginName ||
'' === pluginSlug ||
'' === pluginURL ||
'' === activate
) {
return;
}

// create the installer div
document.getElementById( INSTALLER_DIV ).style.display = 'block';
document
Expand Down

0 comments on commit bf5b754

Please sign in to comment.