Update component name from App to VideoCall

This commit is contained in:
Jesse C. Fisher 2023-08-11 13:30:11 +00:00
parent 7571a78afc
commit 870f288936
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -20,7 +20,7 @@ class VideoCall extends React.Component{
} }
join(data){ this.createPC(data.from, true) } join(data){ this.createPC(data.from, true) }
joinCall(e){ joinCall(e){
App.cable.subscriptions.create( VideoCall.cable.subscriptions.create(
{ channel: "CallChannel" }, { channel: "CallChannel" },
{ {
connected: () => { connected: () => {
@ -128,7 +128,7 @@ class VideoCall extends React.Component{
.forEach(function (track) { track.stop(); }) .forEach(function (track) { track.stop(); })
this.localVideo.srcObject = null; this.localVideo.srcObject = null;
App.cable.subscriptions.subscriptions = []; VideoCall.cable.subscriptions.subscriptions = [];
this.remoteVideoContainer.innerHTML = ""; this.remoteVideoContainer.innerHTML = "";
broadcastData({ type: LEAVE_CALL, from: this.userId }); broadcastData({ type: LEAVE_CALL, from: this.userId });
} }