Skip to content

Commit

Permalink
Files name changed .Show and help button are invisible in error file
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimanita committed Oct 6, 2020
1 parent 07579d2 commit cd1671c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/main/resources/static/vulnerableApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ function _loadDynamicJSAndCSS(urlToFetchHtmlTemplate) {
cssElement.type = "text/css";
cssElement.rel = "stylesheet";
dynamicScriptsElement.appendChild(cssElement);
if(urlToFetchHtmlTemplate === "error")
{
document.getElementById("hideHelp").style.display="none";
document.getElementById("showHelp").style.display="none";
}
else
{
document.getElementById("hideHelp").style.display="inline-block";
document.getElementById("showHelp").style.display="inline-block";
}





}

function _callbackForInnerMasterOnClickEvent(
Expand All @@ -46,7 +61,7 @@ function _callbackForInnerMasterOnClickEvent(
vulnerableAppEndPointData[id]["Description"];
let urlToFetchHtmlTemplate = htmlTemplate
? "templates/" + vulnerabilitySelected + "/" + htmlTemplate
: "sasan";
: "error";
let parentNodeWithAllDynamicScripts = document.getElementById(
"dynamicScripts"
);
Expand Down

0 comments on commit cd1671c

Please sign in to comment.