From d652e4ec18074e51dd7cddd8d79bfc1c97b2e669 Mon Sep 17 00:00:00 2001 From: BreezeZin Date: Thu, 25 Mar 2021 10:41:20 +1000 Subject: [PATCH] Fixed controls not showing on youtube videos. Only add the nosource class if the video has no src or currentSrc. --- inject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inject.js b/inject.js index 858e48f..79f4e58 100644 --- a/inject.js +++ b/inject.js @@ -281,7 +281,7 @@ function defineVideoController() { var wrapper = document.createElement("div"); wrapper.classList.add("vsc-controller"); - if (!this.video.currentSrc) { + if (!this.video.src && !this.video.currentSrc) { wrapper.classList.add("vsc-nosource"); }