File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ downGitModule.factory('downGitService', [
104
104
zip . generateAsync ( { type :"blob" } ) . then ( function ( content ) {
105
105
saveAs ( content , repoInfo . downloadFileName + ".zip" ) ;
106
106
if ( autoClose ) {
107
- window . close ( ) ;
107
+ setTimeout ( function ( ) { window . close ( ) ; } , 1000 ) ;
108
108
}
109
109
} ) ;
110
110
} ) ;
@@ -134,15 +134,15 @@ downGitModule.factory('downGitService', [
134
134
progress . isProcessing . val = false ;
135
135
saveAs ( new Blob ( [ file . data ] ) , repoInfo . downloadFileName ) ;
136
136
if ( autoClose ) {
137
- window . close ( ) ;
137
+ setTimeout ( function ( ) { window . close ( ) ; } , 1000 ) ;
138
138
}
139
139
} else {
140
140
zip . file ( repoInfo . rootName , file . data ) ;
141
141
progress . isProcessing . val = false ;
142
142
zip . generateAsync ( { type :"blob" } ) . then ( function ( content ) {
143
143
saveAs ( content , repoInfo . downloadFileName + ".zip" ) ;
144
144
if ( autoClose ) {
145
- window . close ( ) ;
145
+ setTimeout ( function ( ) { window . close ( ) ; } , 1000 ) ;
146
146
}
147
147
} ) ;
148
148
}
You can’t perform that action at this time.
0 commit comments