mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-11 02:05:09 +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();
|
||||
if (this.interrupted) return;
|
||||
if (imgUrl === "data:," || !imgUrl) return; // failed image rendering
|
||||
|
||||
this.cb({
|
||||
at,
|
||||
|
Loading…
Reference in New Issue
Block a user