We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a5e2afb + 7c91760 commit fc0e48fCopy full SHA for fc0e48f
src/widget.js
@@ -29,7 +29,7 @@
29
showFile();
30
});
31
32
-export function showFile(domain) {
+function showFile() {
33
let fileType = blstFile.type;
34
let validExtensions = ["application/json"];
35
if (validExtensions.includes(fileType)) {
@@ -49,7 +49,7 @@ export function showFile(domain) {
49
}).then((response) => response.json()).then((data) => {
50
let tmp = dropArea.innerHTML;
51
const a = document.createElement("a");
52
- 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}`;
53
a.target = "_blank";
54
a.rel = "noopener noreferrer";
55
document.body.appendChild(a);
0 commit comments