File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,10 @@ License: https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md
16
16
17
17
'use strict' ;
18
18
19
- var saveLink = document . createElementNS ( 'http://www.w3.org/1999/xhtml' , 'a' ) ;
20
- var canUseSaveLink = 'download' in saveLink ;
21
- var isSafari = / V e r s i o n \/ [ \d \. ] + .* S a f a r i / . test ( navigator . userAgent ) ;
22
-
23
19
var fileSaver = function ( url , name ) {
20
+ var saveLink = document . createElement ( 'a' ) ;
21
+ var canUseSaveLink = 'download' in saveLink ;
22
+ var isSafari = / V e r s i o n \/ [ \d \. ] + .* S a f a r i / . test ( navigator . userAgent ) ;
24
23
var promise = new Promise ( function ( resolve , reject ) {
25
24
// IE <10 is explicitly unsupported
26
25
if ( typeof navigator !== 'undefined' && / M S I E [ 1 - 9 ] \. / . test ( navigator . userAgent ) ) {
You can’t perform that action at this time.
0 commit comments