File tree 1 file changed +12
-13
lines changed
1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 914
914
var a = D . createElement ( 'a' ) ;
915
915
var strMimeType = 'application/octet-stream;charset=utf-8' ;
916
916
var rawFile ;
917
- var ieVersion ;
917
+ var ieVersion = this . isIE ( ) ;
918
+
919
+ // IE10+
920
+ if ( navigator . msSaveBlob ) {
921
+ return navigator . msSaveOrOpenBlob (
922
+ new Blob (
923
+ [ exporterOlderExcelCompatibility ? "\uFEFF" : '' , csvContent ] ,
924
+ { type : strMimeType } ) ,
925
+ fileName
926
+ ) ;
927
+ }
918
928
919
- ieVersion = this . isIE ( ) ;
920
- if ( ieVersion && ieVersion < 10 ) {
929
+ if ( ieVersion ) {
921
930
var frame = D . createElement ( 'iframe' ) ;
922
931
document . body . appendChild ( frame ) ;
923
932
931
940
return true ;
932
941
}
933
942
934
- // IE10+
935
- if ( navigator . msSaveBlob ) {
936
- return navigator . msSaveOrOpenBlob (
937
- new Blob (
938
- [ exporterOlderExcelCompatibility ? "\uFEFF" : '' , csvContent ] ,
939
- { type : strMimeType } ) ,
940
- fileName
941
- ) ;
942
- }
943
-
944
943
//html5 A[download]
945
944
if ( 'download' in a ) {
946
945
var blob = new Blob (
You can’t perform that action at this time.
0 commit comments