fixed video registering
This commit is contained in:
parent
93e767be0b
commit
8fa33ed7aa
@ -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(){
|
||||
|
Loading…
Reference in New Issue
Block a user