fixed video registering

This commit is contained in:
Tamius Han 2018-12-09 02:13:26 +01:00
parent 93e767be0b
commit 8fa33ed7aa

View File

@ -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(){