Change extension of export file from csv to txt.
This commit is contained in:
@@ -12,7 +12,7 @@ const useDownload = (url) => {
|
||||
var url = window.URL.createObjectURL(blob);
|
||||
var a = document.createElement('a');
|
||||
a.href = url;
|
||||
a.download = "export.csv";
|
||||
a.download = "export.txt";
|
||||
document.body.appendChild(a); // we need to append the element to the dom -> otherwise it will not work in firefox
|
||||
a.click();
|
||||
a.remove(); //afterwards we remove the element again
|
||||
|
||||
Reference in New Issue
Block a user