Skip to content

Commit

Permalink
Merge pull request #2 from lesander/fix-csv-export
Browse files Browse the repository at this point in the history
Force newline and delimiter in csv exports
  • Loading branch information
lesander authored Jul 19, 2018
2 parents c3a2ed5 + 2813696 commit 9acc6e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ const downloadHistory = async (event) => {
// Convert the object to CSV using papaparse (http://papaparse.com).
const csv = Papa.unparse(history, {
quotes: true,
header: true
header: true,
delimiter: ';',
newline: "\r\n"
})
data = `data:text/csv;charset=utf-8,${csv}`

Expand Down

0 comments on commit 9acc6e8

Please sign in to comment.