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

Commit

Permalink
v3.3.10 - fix export does not work on IE, closes #43
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Clarke committed Apr 28, 2017
1 parent 0db8e9a commit bb0cc67
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 22 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tableexport.js",
"version": "3.3.9",
"version": "3.3.10",
"authors": [
"clarketm <[email protected]>"
],
Expand Down
2 changes: 1 addition & 1 deletion dist/css/tableexport.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* TableExport.js v3.3.9 (https://www.travismclarke.com)
* TableExport.js v3.3.10 (https://www.travismclarke.com)
* Copyright 2016 Travis Clarke
* Licensed under the MIT license
*/
Expand Down
4 changes: 2 additions & 2 deletions dist/css/tableexport.min.css

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

15 changes: 9 additions & 6 deletions dist/js/tableexport.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* TableExport.js v3.3.9 (https://www.travismclarke.com)
* TableExport.js v3.3.10 (https://www.travismclarke.com)
* Copyright 2016 Travis Clarke
* Licensed under the MIT license
*/
Expand Down Expand Up @@ -309,7 +309,7 @@
* Version.
* @memberof TableExport.prototype
*/
version: "3.3.9",
version: "3.3.10",
/**
* Default plugin options.
* @memberof TableExport.prototype
Expand Down Expand Up @@ -502,9 +502,12 @@

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 (typeof saveAs === "undefined" && typeof navigator !== "undefined" && navigator.msSaveOrOpenBlob) {
window.navigator.msSaveOrOpenBlob(blob, name + extension);
} else {
saveAs(blob, name + extension, true);
}
},
/**
* Updates the plugin instance with new/updated options
Expand Down Expand Up @@ -549,4 +552,4 @@
return exports.default = exports.TableExport = TableExport;

}
));
));
4 changes: 2 additions & 2 deletions dist/js/tableexport.min.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tableexport",
"version": "3.3.9",
"version": "3.3.10",
"authors": [
"clarketm <[email protected]>"
],
Expand Down
2 changes: 1 addition & 1 deletion src/stable/css/tableexport.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* TableExport.js v3.3.9 (https://www.travismclarke.com)
* TableExport.js v3.3.10 (https://www.travismclarke.com)
* Copyright 2016 Travis Clarke
* Licensed under the MIT license
*/
Expand Down
Loading

0 comments on commit bb0cc67

Please sign in to comment.