Change extension of export file from csv to txt.

This commit is contained in:
2023-01-16 13:01:53 +01:00
parent 2f8d5fa403
commit b000f2225c
2 changed files with 16 additions and 16 deletions
@@ -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