Skip to content

Commit 0370561

Browse files
save file
1 parent 63926b4 commit 0370561

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

utils/browser-extensions/cors/cors.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,16 +183,14 @@ <h3>
183183

184184
var ct = 0;
185185
var total = 0;
186+
var blob;
186187

187188
add(dir);
188-
189189
await promise;
190-
console.log('xxx');
191-
var blob;
192-
if(zip){console.log(1);
190+
191+
if(zip){
193192
blob = await zip.generateAsync({type:'blob'});
194-
console.log(2);
195-
if(download){console.log(3);
193+
if(download){
196194
var url = window.URL.createObjectURL(blob);
197195
var a = document.createElement('a');
198196
a.download = download;

0 commit comments

Comments
 (0)