File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 29
29
showFile ( ) ;
30
30
} ) ;
31
31
32
- export function showFile ( domain ) {
32
+ function showFile ( ) {
33
33
let fileType = blstFile . type ;
34
34
let validExtensions = [ "application/json" ] ;
35
35
if ( validExtensions . includes ( fileType ) ) {
@@ -49,7 +49,7 @@ export function showFile(domain) {
49
49
} ) . then ( ( response ) => response . json ( ) ) . then ( ( data ) => {
50
50
let tmp = dropArea . innerHTML ;
51
51
const a = document . createElement ( "a" ) ;
52
- a . href = `https://www.blstsecurity.com/ScanSwagger/${ data . scan_id } ?tab=Overview&promo=apibrief#${ domain } ` ;
52
+ a . href = `https://www.blstsecurity.com/ScanSwagger/${ data . scan_id } ?tab=Overview&promo=apibrief#${ document . referrer } ` ;
53
53
a . target = "_blank" ;
54
54
a . rel = "noopener noreferrer" ;
55
55
document . body . appendChild ( a ) ;
You can’t perform that action at this time.
0 commit comments