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.
2 parents b5e61ec + 0403f77 commit 9806041Copy full SHA for 9806041
src/FileSaver.js
@@ -80,7 +80,8 @@ var saveAs = _global.saveAs || (
80
: ('download' in HTMLAnchorElement.prototype && !isMacOSWebView)
81
? function saveAs (blob, name, opts) {
82
var URL = _global.URL || _global.webkitURL
83
- var a = document.createElement('a')
+ // Namespace is used to prevent conflict w/ Chrome Poper Blocker extension (Issue #561)
84
+ var a = document.createElementNS('http://www.w3.org/1999/xhtml', 'a')
85
name = name || blob.name || 'download'
86
87
a.download = name
0 commit comments