js-file-download
Advanced tools
Comparing version 0.4.8 to 0.4.9
@@ -28,5 +28,9 @@ module.exports = function(data, filename, mime, bom) { | ||
tempLink.click(); | ||
document.body.removeChild(tempLink); | ||
window.URL.revokeObjectURL(blobURL); | ||
// Fixes "webkit blob resource error 1" | ||
setTimeout(function() { | ||
document.body.removeChild(tempLink); | ||
window.URL.revokeObjectURL(blobURL); | ||
}, 0) | ||
} | ||
} |
{ | ||
"name": "js-file-download", | ||
"version": "0.4.8", | ||
"version": "0.4.9", | ||
"description": "Javascript function that triggers browser to save javascript-generated content to a file", | ||
@@ -5,0 +5,0 @@ "main": "file-download.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4508
40