mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 12:09:21 +00:00
Fix null issue
This commit is contained in:
parent
476af0e3de
commit
393da5beaf
@ -970,7 +970,9 @@ class CallWindow extends CustomEvents {
|
|||||||
async closeMainPeer() {
|
async closeMainPeer() {
|
||||||
|
|
||||||
// Remove ready attribute
|
// Remove ready attribute
|
||||||
this.getMemberNameEl(userID()).classList.remove("ready");
|
const memberEl = this.getMemberNameEl(userID());
|
||||||
|
if (memberEl)
|
||||||
|
memberEl.classList.remove("ready");
|
||||||
|
|
||||||
// Close peer connection
|
// Close peer connection
|
||||||
if(this.mainPeer) {
|
if(this.mainPeer) {
|
||||||
|
Loading…
Reference in New Issue
Block a user