Skip to content

Commit aaba40b

Browse files
save file
1 parent 9d2cc85 commit aaba40b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

utils/video/video-thumbnail-generator/video-thumbnail-generator.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ <h1 slot=seo-hdr class=visually-hidden>video thumbnail generator</h1>
370370
}//generate
371371

372372

373-
btn.auto = function(){
373+
btn.auto = async function(){
374374

375375
if(cur.status){
376376
log.red('already running');
@@ -391,28 +391,28 @@ <h1 slot=seo-hdr class=visually-hidden>video thumbnail generator</h1>
391391
w = -1;
392392
for(h=25;h<=100;h+=25){
393393

394-
fn();
394+
await fn();
395395

396396
}//for
397397

398398
h = -1;
399399
for(w=25;w<=100;w+=25){
400400

401-
fn();
401+
await fn();
402402

403403
}//for
404404

405405
}//for
406406

407407

408-
function fn(){
408+
async function fn(){
409409

410410
if($('#png [type]').checked){
411-
gen.png(w,h,secs);
411+
await gen.png(w,h,secs);
412412
}
413413

414414
if($('#jpg [type]').checked){
415-
gen.jpg(w,h,secs);
415+
await gen.jpg(w,h,secs);
416416
}
417417

418418
}//gen
@@ -421,7 +421,7 @@ <h1 slot=seo-hdr class=visually-hidden>video thumbnail generator</h1>
421421

422422

423423
gen.png = async function(w,h,secs){
424-
424+
console.log(w,h,secs);
425425
var fn = cur.file.filename;
426426
var fn2 = fn.split('.')[0];
427427
var thumb = fn2+'.png';

0 commit comments

Comments
 (0)