@@ -35,7 +35,7 @@ function download(blobUrl, filename) {
35
35
if ( "download" in a ) {
36
36
a . download = filename ;
37
37
}
38
- // <a> must be in the document for IE and recent Firefox versions,
38
+ // <a> must be in the document for recent Firefox versions,
39
39
// otherwise .click() is ignored.
40
40
( document . body || document . documentElement ) . appendChild ( a ) ;
41
41
a . click ( ) ;
@@ -51,11 +51,6 @@ class DownloadManager {
51
51
}
52
52
53
53
downloadData ( data , filename , contentType ) {
54
- if ( navigator . msSaveBlob ) {
55
- // IE10 and above
56
- navigator . msSaveBlob ( new Blob ( [ data ] , { type : contentType } ) , filename ) ;
57
- return ;
58
- }
59
54
const blobUrl = createObjectURL (
60
55
data ,
61
56
contentType ,
@@ -71,14 +66,6 @@ class DownloadManager {
71
66
* the "open with" dialog.
72
67
*/
73
68
download ( blob , url , filename , sourceEventType = "download" ) {
74
- if ( navigator . msSaveBlob ) {
75
- // IE10 / IE11
76
- if ( ! navigator . msSaveBlob ( blob , filename ) ) {
77
- this . downloadUrl ( url , filename ) ;
78
- }
79
- return ;
80
- }
81
-
82
69
if ( viewerCompatibilityParams . disableCreateObjectURL ) {
83
70
// URL.createObjectURL is not supported
84
71
this . downloadUrl ( url , filename ) ;
0 commit comments