Skip to content

Commit 62483b4

Browse files
author
Dmitry
committed
changed format to xlsx
1 parent 091e03a commit 62483b4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎index.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ var ReactHTMLTableToExcel = (function(_Component) {
135135
var sheet = String(this.props.sheet);
136136
var filename = String(this.props.filename) + ".xlsx";
137137

138-
var uri = "data:application/vnd.ms-excel;base64,";
138+
var uri = 'data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,',
139+
139140
var template =
140141
'<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-mic' +
141142
'rosoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><meta cha' +

0 commit comments

Comments
 (0)