diff --git a/js/lib/Comms.js b/js/lib/Comms.js index cfea43a..525fb5f 100644 --- a/js/lib/Comms.js +++ b/js/lib/Comms.js @@ -144,7 +144,9 @@ class CommsClient { if (Debug.debug && Debug.comms) { console.log(`[CommsClient::registerVideo] <${this.commsId}>`, "Registering video for current page."); } - this.port.postMessage({cmd: "has-video"}); + if (this.pageInfo.videos.length) { + this.port.postMessage({cmd: "has-video"}); + } } unregisterVideo(){