Skip to content

Commit

Permalink
fix: downloaded file is with CSV extension
Browse files Browse the repository at this point in the history
Closes #74
  • Loading branch information
troggy committed Jun 25, 2020
1 parent 4a714a5 commit 91b41c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ chrome.webNavigation.onHistoryStateUpdated.addListener(state => {
chrome.runtime.onMessage.addListener(
(arg) => {
if (arg.type && (arg.type === 'ankileo.download')) {
const resultBlob = new Blob(arg.payload.data, { type: 'text/plain;charset=utf-8' })
const resultBlob = new Blob(arg.payload.data, { type: 'text/csv;charset=utf-8' })
const url = URL.createObjectURL(resultBlob)
chrome.downloads.download({
url: url,
Expand Down

0 comments on commit 91b41c5

Please sign in to comment.