Skip to content

Commit 3749c75

Browse files
authored
Merge pull request #5 from ynishi/fix_bom
fix about bom
2 parents 95a2cc3 + d1b0a75 commit 3749c75

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuecsv",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"description": "CSV components for Vue.js",
55
"homepage": "https://github.com/ynishi/vuecsv",
66
"repository": {

src/components/CsvDownload.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ export default {
4242
alert('no data')
4343
return
4444
}
45-
const bom = new Uint8Array([0xEF, 0xBB, 0xBF])
46-
const blob = new Blob([bom, this.dataCSV], {type: 'text/csv;charset=utf-8'})
45+
const blob = new Blob([this.dataCSV], {type: 'text/csv;charset=utf-8'})
4746
FS.saveAs(blob, this.filename)
4847
}
4948
}

0 commit comments

Comments
 (0)