mirror of https://github.com/gophish/gophish
Fixing results download in Firefox. Fixes #153
parent
1fe1af2ce9
commit
913f444598
|
@ -111,7 +111,9 @@ function exportAsCSV(scope) {
|
||||||
var dlLink = document.createElement('a');
|
var dlLink = document.createElement('a');
|
||||||
dlLink.href = csvURL;
|
dlLink.href = csvURL;
|
||||||
dlLink.setAttribute('download', scope + '.csv');
|
dlLink.setAttribute('download', scope + '.csv');
|
||||||
|
document.body.appendChild(dlLink)
|
||||||
dlLink.click();
|
dlLink.click();
|
||||||
|
document.body.removeChild(dlLink)
|
||||||
}
|
}
|
||||||
$("#exportButton").html(exportHTML)
|
$("#exportButton").html(exportHTML)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue