Skip to content

Commit 6ea6dc3

Browse files
authored
Merge pull request #132 from havelboumbidi/patch-1
Update index.js
2 parents a717fe2 + 0ec6090 commit 6ea6dc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class ReactDatatable extends Component {
255255
navigator.msSaveOrOpenBlob(blob, filename);
256256
}else{
257257
// Create a link to the file
258-
downloadLink.href = 'data:' + dataType + ', ' + tableHtml;
258+
downloadLink.href = 'data:' + dataType + ';base64' + btoa(tableHtml);
259259
// Setting the file name
260260
downloadLink.download = filename;
261261
//triggering the function

0 commit comments

Comments
 (0)