|
@@ -64,7 +64,7 @@ ConnectionIndicator.getStringFromArray = function (array) {
|
64
|
64
|
ConnectionIndicator.prototype.generateText = function () {
|
65
|
65
|
var downloadBitrate, uploadBitrate, packetLoss, i;
|
66
|
66
|
|
67
|
|
- if(this.bitrate === null) {
|
|
67
|
+ if(!this.bitrate) {
|
68
|
68
|
downloadBitrate = "N/A";
|
69
|
69
|
uploadBitrate = "N/A";
|
70
|
70
|
}
|
|
@@ -75,7 +75,7 @@ ConnectionIndicator.prototype.generateText = function () {
|
75
|
75
|
this.bitrate.upload? this.bitrate.upload + " Kbps" : "N/A";
|
76
|
76
|
}
|
77
|
77
|
|
78
|
|
- if(this.packetLoss === null) {
|
|
78
|
+ if(!this.packetLoss) {
|
79
|
79
|
packetLoss = "N/A";
|
80
|
80
|
} else {
|
81
|
81
|
|
|
@@ -132,7 +132,7 @@ ConnectionIndicator.prototype.generateText = function () {
|
132
|
132
|
|
133
|
133
|
if (this.showMoreValue) {
|
134
|
134
|
var downloadBandwidth, uploadBandwidth, transport;
|
135
|
|
- if (this.bandwidth === null) {
|
|
135
|
+ if (!this.bandwidth) {
|
136
|
136
|
downloadBandwidth = "N/A";
|
137
|
137
|
uploadBandwidth = "N/A";
|
138
|
138
|
} else {
|
|
@@ -341,7 +341,7 @@ ConnectionIndicator.prototype.updateConnectionStatusIndicator
|
341
|
341
|
*/
|
342
|
342
|
ConnectionIndicator.prototype.updateConnectionQuality =
|
343
|
343
|
function (percent, object) {
|
344
|
|
- if (percent === null) {
|
|
344
|
+ if (!percent) {
|
345
|
345
|
this.connectionIndicatorContainer.style.display = "none";
|
346
|
346
|
this.popover.forceHide();
|
347
|
347
|
return;
|