If video doesn't have width or height, we do nothing.
This commit is contained in:
parent
08b10220e1
commit
c53780e619
@ -32,7 +32,7 @@ class DebugCanvas {
|
|||||||
this.canvas.style.left = `${canvasPosition.left}px`;
|
this.canvas.style.left = `${canvasPosition.left}px`;
|
||||||
this.canvas.style.top = `${canvasPosition.top}px`;
|
this.canvas.style.top = `${canvasPosition.top}px`;
|
||||||
this.canvas.style.zIndex = 10002;
|
this.canvas.style.zIndex = 10002;
|
||||||
this.canvas.id = "uw_debug_canvas";
|
// this.canvas.id = "uw_debug_canvas";
|
||||||
|
|
||||||
this.context = this.canvas.getContext("2d");
|
this.context = this.canvas.getContext("2d");
|
||||||
|
|
||||||
|
@ -42,6 +42,11 @@ class PageInfo {
|
|||||||
// );
|
// );
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
if(! vids[0].offsetWidth || ! vids[0].offsetHeight){
|
||||||
|
this.hasVideos = false;
|
||||||
|
this.scheduleRescan();
|
||||||
|
}
|
||||||
|
|
||||||
if(this.videos.length > 0){
|
if(this.videos.length > 0){
|
||||||
if(vids[0] == this.videos[0].video){
|
if(vids[0] == this.videos[0].video){
|
||||||
// do nothing
|
// do nothing
|
||||||
|
Loading…
Reference in New Issue
Block a user