mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
Update index.js
Fixed formatting and remove debug-logging
This commit is contained in:
parent
99a78390a3
commit
cbaef7c236
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