Skip to content

Commit

Permalink
Remove accidental log spam
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasloven committed May 14, 2021
1 parent 273dcec commit 24f2609
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/fontawesome/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion custom_components/fontawesome/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"codeowners": [],
"requirements": [],
"config_flow": true,
"version": "2.0.0",
"version": "2.0.1",
"iot_class": "local_polling"
}
3 changes: 1 addition & 2 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ customElements.whenDefined("ha-svg-icon").then(() => {

HaSvgIcon.prototype.setPaths = async function (paths) {
await this.updateComplete;
if (Object.keys(paths).length === 0) return;
if (paths == undefined || Object.keys(paths).length === 0) return;
const styleEl =
this.shadowRoot.querySelector("style") || document.createElement("style");
styleEl.innerHTML = `
Expand Down Expand Up @@ -116,7 +116,6 @@ customElements.whenDefined("ha-svg-icon").then(() => {
`;
this.shadowRoot.appendChild(styleEl);
const root = this.shadowRoot.querySelector("g");
console.log(paths);
if (root.firstElementChild) {
root.firstElementChild.style.display = "none";
}
Expand Down

0 comments on commit 24f2609

Please sign in to comment.