mirror of
https://github.com/movie-web/movie-web.git
synced 2025-01-12 04:59:06 +01:00
Handle image rendering error for thumbnails
This commit is contained in:
parent
28a30282dd
commit
ef9eaf074e
@ -92,6 +92,7 @@ class ThumnbnailWorker {
|
|||||||
);
|
);
|
||||||
const imgUrl = this.canvasEl.toDataURL();
|
const imgUrl = this.canvasEl.toDataURL();
|
||||||
if (this.interrupted) return;
|
if (this.interrupted) return;
|
||||||
|
if (imgUrl === "data:," || !imgUrl) return; // failed image rendering
|
||||||
|
|
||||||
this.cb({
|
this.cb({
|
||||||
at,
|
at,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user