1
0
Fork 0
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:
mrjvs 2023-12-10 12:58:45 +01:00
parent 28a30282dd
commit ef9eaf074e

View file

@ -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,