Skip to content

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

ref(ConnectionIndicator.js) pass icon class as an argument

paweldomascf931f8a9fdd
diff --git a/modules/UI/videolayout/ConnectionIndicator.js b/modules/UI/videolayout/ConnectionIndicator.js
index ff5eb9b616..95273a5cb2 100644
--- a/modules/UI/videolayout/ConnectionIndicator.js
+++ b/modules/UI/videolayout/ConnectionIndicator.js
@@ -245,13 +245,13 @@ ConnectionIndicator.prototype.showMore = function () {
};
-function createIcon(classes) {
+function createIcon(classes, iconClass) {
var icon = document.createElement("span");
for(var i in classes) {
icon.classList.add(classes[i]);
}
icon.appendChild(
- document.createElement("i")).classList.add("icon-connection");
+ document.createElement("i")).classList.add(iconClass);
return icon;
}
@@ -282,9 +282,9 @@ ConnectionIndicator.prototype.create = function () {
}.bind(this);
this.emptyIcon = this.connectionIndicatorContainer.appendChild(
- createIcon(["connection", "connection_empty"]));
+ createIcon(["connection", "connection_empty"], "icon-connection"));
this.fullIcon = this.connectionIndicatorContainer.appendChild(
- createIcon(["connection", "connection_full"]));
+ createIcon(["connection", "connection_full"], "icon-connection"));
};
/**