mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
Handle image rendering error for thumbnails
This commit is contained in:
parent
28a30282dd
commit
ef9eaf074e
1 changed files with 1 additions and 0 deletions
|
@ -92,6 +92,7 @@ class ThumnbnailWorker {
|
|||
);
|
||||
const imgUrl = this.canvasEl.toDataURL();
|
||||
if (this.interrupted) return;
|
||||
if (imgUrl === "data:," || !imgUrl) return; // failed image rendering
|
||||
|
||||
this.cb({
|
||||
at,
|
||||
|
|
Loading…
Reference in a new issue