Skip to content

Commit

Permalink
Change datalog CSV download mime type from text/plain to text/csv (#339)
Browse files Browse the repository at this point in the history
* Change datalog mime type from text/plain to text/csv

* datalog: Update MicroBitLog.cpp with changes from parent commit.

---------

Co-authored-by: Carlos Pereira Atencio <carlos@microbit.org>
  • Loading branch information
martinwork and microbit-carlos authored Nov 13, 2023
1 parent 3c9c454 commit e88cb96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/logfs/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
download: function () {
let a = tag("a");
a.download = "microbit.csv";
a.href = URL.createObjectURL(new Blob([csv], { type: "text/plain" }));
a.href = URL.createObjectURL(new Blob([csv], { type: "text/csv" }));
a.click();
a.remove();
},
Expand Down
Loading

0 comments on commit e88cb96

Please sign in to comment.