Skip to content

Commit

Permalink
Merge pull request #2 from yigblst/patch-2
Browse files Browse the repository at this point in the history
Update widget.js
  • Loading branch information
OmerWow authored May 11, 2022
2 parents a5e2afb + 7c91760 commit fc0e48f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
showFile();
});

export function showFile(domain) {
function showFile() {
let fileType = blstFile.type;
let validExtensions = ["application/json"];
if (validExtensions.includes(fileType)) {
Expand All @@ -49,7 +49,7 @@ export function showFile(domain) {
}).then((response) => response.json()).then((data) => {
let tmp = dropArea.innerHTML;
const a = document.createElement("a");
a.href = `https://www.blstsecurity.com/ScanSwagger/${data.scan_id}?tab=Overview&promo=apibrief#${domain}`;
a.href = `https://www.blstsecurity.com/ScanSwagger/${data.scan_id}?tab=Overview&promo=apibrief#${document.referrer}`;
a.target = "_blank";
a.rel = "noopener noreferrer";
document.body.appendChild(a);
Expand Down

0 comments on commit fc0e48f

Please sign in to comment.