From 393da5beaf40a9f47e92db3cc94a2ca061c5dc75 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 23 Jan 2021 20:48:33 +0100 Subject: [PATCH] Fix null issue --- assets/js/components/calls/window.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/js/components/calls/window.js b/assets/js/components/calls/window.js index aaba082e..07f1d539 100644 --- a/assets/js/components/calls/window.js +++ b/assets/js/components/calls/window.js @@ -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) {