Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Improves safe checks for missing stats.

damencho39a8681e8ef6
diff --git a/modules/UI/videolayout/ConnectionIndicator.js b/modules/UI/videolayout/ConnectionIndicator.js
index 18bff07eed..ce8021ba86 100644
--- a/modules/UI/videolayout/ConnectionIndicator.js
+++ b/modules/UI/videolayout/ConnectionIndicator.js
@@ -64,7 +64,7 @@ ConnectionIndicator.getStringFromArray = function (array) {
ConnectionIndicator.prototype.generateText = function () {
var downloadBitrate, uploadBitrate, packetLoss, i;
- if(this.bitrate === null) {
+ if(!this.bitrate) {
downloadBitrate = "N/A";
uploadBitrate = "N/A";
}
@@ -75,7 +75,7 @@ ConnectionIndicator.prototype.generateText = function () {
this.bitrate.upload? this.bitrate.upload + " Kbps" : "N/A";
}
- if(this.packetLoss === null) {
+ if(!this.packetLoss) {
packetLoss = "N/A";
} else {
@@ -132,7 +132,7 @@ ConnectionIndicator.prototype.generateText = function () {
if (this.showMoreValue) {
var downloadBandwidth, uploadBandwidth, transport;
- if (this.bandwidth === null) {
+ if (!this.bandwidth) {
downloadBandwidth = "N/A";
uploadBandwidth = "N/A";
} else {
@@ -341,7 +341,7 @@ ConnectionIndicator.prototype.updateConnectionStatusIndicator
*/
ConnectionIndicator.prototype.updateConnectionQuality =
function (percent, object) {
- if (percent === null) {
+ if (!percent) {
this.connectionIndicatorContainer.style.display = "none";
this.popover.forceHide();
return;