diff --git a/js/modules/DebugCanvas.js b/js/modules/DebugCanvas.js index dca0882..85e3abf 100644 --- a/js/modules/DebugCanvas.js +++ b/js/modules/DebugCanvas.js @@ -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"); diff --git a/js/modules/PageInfo.js b/js/modules/PageInfo.js index a6b7821..502518c 100644 --- a/js/modules/PageInfo.js +++ b/js/modules/PageInfo.js @@ -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