Update index.js
Fixed formatting and remove debug-logging
This commit is contained in:
parent
99a78390a3
commit
cbaef7c236
1 changed files with 5 additions and 6 deletions
11
index.js
11
index.js
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue