Fix null issue

This commit is contained in:
Pierre HUBERT 2021-01-23 20:48:33 +01:00
parent 476af0e3de
commit 393da5beaf

View File

@ -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) {