Linter fix

This commit is contained in:
David Négrier 2020-08-17 16:18:39 +02:00
parent 6516e621b0
commit beb0d1ef0a
2 changed files with 4 additions and 4 deletions

View File

@ -117,10 +117,10 @@ class LayoutManager {
HtmlUtils.getElementByIdOrFail<HTMLDivElement>('chat-mode').style.display = 'flex'; HtmlUtils.getElementByIdOrFail<HTMLDivElement>('chat-mode').style.display = 'flex';
} }
for (let div of this.importantDivs.values()) { for (const div of this.importantDivs.values()) {
this.positionDiv(div, DivImportance.Important); this.positionDiv(div, DivImportance.Important);
} }
for (let div of this.normalDivs.values()) { for (const div of this.normalDivs.values()) {
this.positionDiv(div, DivImportance.Normal); this.positionDiv(div, DivImportance.Normal);
} }
} }

View File

@ -198,7 +198,7 @@ export class SimplePeer {
this.addMedia(user.userId); this.addMedia(user.userId);
for (let peerConnectionListener of this.peerConnectionListeners) { for (const peerConnectionListener of this.peerConnectionListeners) {
peerConnectionListener.onConnect(user); peerConnectionListener.onConnect(user);
} }
} }
@ -222,7 +222,7 @@ export class SimplePeer {
peer.destroy(); peer.destroy();
this.PeerConnectionArray.delete(userId) this.PeerConnectionArray.delete(userId)
//console.log('Nb users in peerConnectionArray '+this.PeerConnectionArray.size); //console.log('Nb users in peerConnectionArray '+this.PeerConnectionArray.size);
for (let peerConnectionListener of this.peerConnectionListeners) { for (const peerConnectionListener of this.peerConnectionListeners) {
peerConnectionListener.onDisconnect(userId); peerConnectionListener.onDisconnect(userId);
} }
} catch (err) { } catch (err) {