Skip to content

Commit

Permalink
IE 11 Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaybandivadekar committed May 23, 2019
1 parent 055630b commit 793559f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions file-download.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = function(data, filename, mime, bom = null) {
var blobData = (bom) ? [bom, data] : [data]
module.exports = function(data, filename, mime, bom) {
var blobData = (typeof bom !== 'undefined') ? [bom, data] : [data]
var blob = new Blob(blobData, {type: mime || 'application/octet-stream'});
if (typeof window.navigator.msSaveBlob !== 'undefined') {
// IE workaround for "HTML7007: One or more blob URLs were
Expand Down

0 comments on commit 793559f

Please sign in to comment.