Update index.js

Fixed formatting and remove debug-logging
This commit is contained in:
Bastian Küppers 2016-11-29 16:22:25 +01:00 committed by GitHub
parent 99a78390a3
commit cbaef7c236

View file

@ -160,13 +160,12 @@ class Tab extends EventEmitter {
this.iconURL = iconURL;
let span = this.tabElements.icon;
if (iconURL) {
console.log(iconURL);
if(iconURL.startsWith("fa-")) {
span.innerHTML = `<i class="fa ${iconURL}"></i>`;
}
else {
span.innerHTML = `<img src="${iconURL}" />`;
}
span.innerHTML = `<i class="fa ${iconURL}"></i>`;
}
else {
span.innerHTML = `<img src="${iconURL}" />`;
}
}
this.emit("icon-changed", iconURL, this);
return this;