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

Commit 0bced70

Browse files
Travis ClarkeTravis Clarke
authored andcommitted
fix #25 : doesn't work on IE and Safari
1 parent ffc1d80 commit 0bced70

File tree

10 files changed

+14
-14
lines changed

10 files changed

+14
-14
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tableexport.js",
3-
"version": "3.2.13",
3+
"version": "3.2.14",
44
"authors": [
55
"clarketm <travis.m.clarke@gmail.com>"
66
],

dist/css/tableexport.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* TableExport.js v3.2.13 (https://www.travismclarke.com)
2+
* TableExport.js v3.2.14 (https://www.travismclarke.com)
33
* Copyright 2016 Travis Clarke
44
* Licensed under the MIT license
55
*/

dist/css/tableexport.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/tableexport.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* TableExport.js v3.2.13 (https://www.travismclarke.com)
2+
* TableExport.js v3.2.14 (https://www.travismclarke.com)
33
* Copyright 2016 Travis Clarke
44
* Licensed under the MIT license
55
*/
@@ -442,7 +442,7 @@
442442
* @param extension {String} file extension
443443
*/
444444
export2file: function (data, mime, name, extension) {
445-
if (XLSX && extension.startsWith(".xls")) {
445+
if (XLSX && extension.substr(0, 4) == ".xls") {
446446
var wb = new this.Workbook(),
447447
ws = this.createSheet(data);
448448

dist/js/tableexport.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tableexport",
3-
"version": "3.2.13",
3+
"version": "3.2.14",
44
"authors": [
55
"clarketm <travis.m.clarke@gmail.com>"
66
],

src/stable/css/tableexport.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* TableExport.js v3.2.13 (https://www.travismclarke.com)
2+
* TableExport.js v3.2.14 (https://www.travismclarke.com)
33
* Copyright 2016 Travis Clarke
44
* Licensed under the MIT license
55
*/

src/stable/css/tableexport.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/stable/js/tableexport.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* TableExport.js v3.2.13 (https://www.travismclarke.com)
2+
* TableExport.js v3.2.14 (https://www.travismclarke.com)
33
* Copyright 2016 Travis Clarke
44
* Licensed under the MIT license
55
*/
@@ -442,7 +442,7 @@
442442
* @param extension {String} file extension
443443
*/
444444
export2file: function (data, mime, name, extension) {
445-
if (XLSX && extension.startsWith(".xls")) {
445+
if (XLSX && extension.substr(0, 4) == ".xls") {
446446
var wb = new this.Workbook(),
447447
ws = this.createSheet(data);
448448

0 commit comments

Comments
 (0)