If video doesn't have width or height, we do nothing.

This commit is contained in:
Tamius Han 2018-05-19 22:20:35 +02:00
parent 08b10220e1
commit c53780e619
2 changed files with 6 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class DebugCanvas {
this.canvas.style.left = `${canvasPosition.left}px`;
this.canvas.style.top = `${canvasPosition.top}px`;
this.canvas.style.zIndex = 10002;
this.canvas.id = "uw_debug_canvas";
// this.canvas.id = "uw_debug_canvas";
this.context = this.canvas.getContext("2d");

View File

@ -42,6 +42,11 @@ class PageInfo {
// );
// }
// }
if(! vids[0].offsetWidth || ! vids[0].offsetHeight){
this.hasVideos = false;
this.scheduleRescan();
}
if(this.videos.length > 0){
if(vids[0] == this.videos[0].video){
// do nothing