File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed
utils/browser-extensions/cors Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -180,15 +180,19 @@ <h3>
180180 }
181181
182182 var resolve , promise = new Promise ( res => resolve = res ) ;
183- var ct = 0 , total = 0 ;
183+
184+ var ct = 0 ;
185+ var total = 0 ;
186+
184187 add ( dir ) ;
185- await promise ;
186188
189+ await promise ;
190+ console . log ( 'xxx' ) ;
187191 var blob ;
188- if ( zip ) {
192+ if ( zip ) { console . log ( 1 ) ;
189193 blob = await zip . generateAsync ( { type :'blob' } ) ;
190-
191- if ( download ) {
194+ console . log ( 2 ) ;
195+ if ( download ) { console . log ( 3 ) ;
192196 var url = window . URL . createObjectURL ( blob ) ;
193197 var a = document . createElement ( 'a' ) ;
194198 a . download = download ;
203207
204208 for ( let key in dir ) {
205209
206- ct ++ ;
210+ total ++ ;
211+ df && console . log ( total , key ) ;
212+
207213 var o = dir [ key ] ;
208214
209215 if ( o . directory ) {
255261
256262 function complete ( ) {
257263
258- total ++ ;
264+ ct ++ ;
265+ df && console . log ( ct , total ) ;
259266 if ( ct == total ) {
260267 resolve ( ) ;
261268 }
You can’t perform that action at this time.
0 commit comments