Skip to content

Commit 793559f

Browse files
committedMay 23, 2019
IE 11 Fixes
1 parent 055630b commit 793559f

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.