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,