mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-07-19 09:26:02 +00:00
Fix null issue
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user