Skip to content

Commit 13e26af

Browse files
authoredMay 24, 2019
Merge pull request #50 from akshaybandivadekar/IE-11-Fixes
Thank you @akshaybandivadekar
2 parents 055630b + 793559f commit 13e26af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎file-download.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
module.exports = function(data, filename, mime, bom = null) {
2-
var blobData = (bom) ? [bom, data] : [data]
1+
module.exports = function(data, filename, mime, bom) {
2+
var blobData = (typeof bom !== 'undefined') ? [bom, data] : [data]
33
var blob = new Blob(blobData, {type: mime || 'application/octet-stream'});
44
if (typeof window.navigator.msSaveBlob !== 'undefined') {
55
// IE workaround for "HTML7007: One or more blob URLs were

0 commit comments

Comments
 (0)
Please sign in to comment.