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