Skip to content

Commit

Permalink
Merge pull request #233 from ishiDACo/hotfix/231-amazon-linux-score-l…
Browse files Browse the repository at this point in the history
…abel

Hotfix/231 amazon linux score label
  • Loading branch information
ishiDACo authored Aug 29, 2021
2 parents 892f280 + 39316dd commit c575a9f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions dist/js/vulsrepo.js
Original file line number Diff line number Diff line change
Expand Up @@ -1965,8 +1965,13 @@ const displayDetail = function(cveID) {
severityV3 = toUpperFirstLetter(cveContent.cvss3Severity);

if (target === "ubuntu" || target === "debian" || target === "debian_security_tracker" || target === "amazon") {
$("#scoreText_" + dest).removeClass();
$("#scoreText_" + dest).text(severityV2).addClass("cvss-" + severityV2);
if (severityV2 === "") {
$("#scoreText_" + dest).removeClass();
$("#scoreText_" + dest).text(severityV3).addClass("cvss-" + severityV3);
} else {
$("#scoreText_" + dest).removeClass();
$("#scoreText_" + dest).text(severityV2).addClass("cvss-" + severityV2);
}
} else if (target === "trivy" || target === "github") {
$("#scoreText_" + dest).removeClass();
$("#scoreText_" + dest).text(severityV3).addClass("cvss-" + severityV3);
Expand Down

0 comments on commit c575a9f

Please sign in to comment.