Skip to content

Commit

Permalink
correct mime type for csv and txt
Browse files Browse the repository at this point in the history
  • Loading branch information
xq5he committed Oct 13, 2015
1 parent a891806 commit 56f3cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tableExport.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ THE SOFTWARE.*/
console.log(tdData);
}
var base64data = "base64," + $.base64.encode(tdData);
window.open('data:application/'+defaults.type+';filename=exportData;' + base64data);
window.open('data:text/'+defaults.type+';filename=exportData;' + base64data);
}else if(defaults.type == 'sql'){

// Header
Expand Down

1 comment on commit 56f3cd5

@thapliyalmanoj
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks .

Please sign in to comment.