Skip to content
This repository has been archived by the owner on Jul 25, 2021. It is now read-only.

Commit

Permalink
Add export support for internet Explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
sauravbhattacharya001 committed Mar 18, 2017
1 parent 8ddd342 commit cd31d43
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions src/stable/js/tableexport.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,15 @@

data = this.string2ArrayBuffer(wbout);
}
saveAs(new Blob([data],
{type: mime + ";" + this.charset}),
name + extension, true);
var blob = new Blob([data], {type: mime + ";" + this.charset});
if (navigator.appVersion.toString().indexOf('.NET') > 0)
{
window.navigator.msSaveOrOpenBlob(blob, name + extension);
}
else
{
saveAs(blob, name + extension, true);
}
},
/**
* Updates the plugin instance with new/updated options
Expand Down
2 changes: 1 addition & 1 deletion src/stable/js/tableexport.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cd31d43

Please sign in to comment.