Skip to content

Commit 3efe400

Browse files
committed
Deleted the double extension
There was 2 times '.xls' in the created filename because of the return from getFileName
1 parent 186a9a3 commit 3efe400

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/jquery.table2excel.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@
135135
};
136136

137137
function getFileName(settings) {
138-
return ( settings.filename ? settings.filename : "table2excel" ) +
139-
( settings.fileext ? settings.fileext : ".xlsx" );
138+
return ( settings.filename ? settings.filename : "table2excel" );
140139
}
141140

142141
$.fn[ pluginName ] = function ( options ) {

0 commit comments

Comments
 (0)