We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bc9ed3 commit 0403f77Copy full SHA for 0403f77
src/FileSaver.js
@@ -75,7 +75,8 @@ var saveAs = _global.saveAs || (
75
: 'download' in HTMLAnchorElement.prototype
76
? function saveAs (blob, name, opts) {
77
var URL = _global.URL || _global.webkitURL
78
- var a = document.createElement('a')
+ // Namespace is used to prevent conflict w/ Chrome Poper Blocker extension (Issue #561)
79
+ var a = document.createElementNS('http://www.w3.org/1999/xhtml', 'a')
80
name = name || blob.name || 'download'
81
82
a.download = name
0 commit comments