[self-hosted] fix: if client does not support webrtc but peer does, show peer with a red border as well

This commit is contained in:
schlagmichdoch 2023-02-15 21:08:02 +01:00
parent 49e7281092
commit e9b23bfdb0

View file

@ -258,7 +258,7 @@ class PeerUI {
this.$el.id = this._peer.id;
this.$el.ui = this;
this.$el.classList.add(`type-${this._roomType}`);
if (!this._peer.rtcSupported) this.$el.classList.add('ws-peer')
if (!this._peer.rtcSupported || !window.isRtcSupported) this.$el.classList.add('ws-peer')
this.html();
this._callbackInput = e => this._onFilesSelected(e)