File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ downGitModule.factory('downGitService', [
104104 zip . generateAsync ( { type :"blob" } ) . then ( function ( content ) {
105105 saveAs ( content , repoInfo . downloadFileName + ".zip" ) ;
106106 if ( autoClose ) {
107- window . close ( ) ;
107+ setTimeout ( function ( ) { window . close ( ) ; } , 1000 ) ;
108108 }
109109 } ) ;
110110 } ) ;
@@ -134,15 +134,15 @@ downGitModule.factory('downGitService', [
134134 progress . isProcessing . val = false ;
135135 saveAs ( new Blob ( [ file . data ] ) , repoInfo . downloadFileName ) ;
136136 if ( autoClose ) {
137- window . close ( ) ;
137+ setTimeout ( function ( ) { window . close ( ) ; } , 1000 ) ;
138138 }
139139 } else {
140140 zip . file ( repoInfo . rootName , file . data ) ;
141141 progress . isProcessing . val = false ;
142142 zip . generateAsync ( { type :"blob" } ) . then ( function ( content ) {
143143 saveAs ( content , repoInfo . downloadFileName + ".zip" ) ;
144144 if ( autoClose ) {
145- window . close ( ) ;
145+ setTimeout ( function ( ) { window . close ( ) ; } , 1000 ) ;
146146 }
147147 } ) ;
148148 }
You can’t perform that action at this time.
0 commit comments