Fixed weird bug from last commit.
This commit is contained in:
parent
4d655ee8c4
commit
895805bda1
@ -96,11 +96,10 @@ class PatekLogo extends HTMLElement {
|
|||||||
clone.getElementById("titleText").innerText = typeof this.attributes.title !== "undefined" ? this.attributes.title.value : "Pátek";
|
clone.getElementById("titleText").innerText = typeof this.attributes.title !== "undefined" ? this.attributes.title.value : "Pátek";
|
||||||
clone.getElementById("subtitleText").innerText = typeof this.attributes.subtitle !== "undefined" ? this.attributes.subtitle.value : "";
|
clone.getElementById("subtitleText").innerText = typeof this.attributes.subtitle !== "undefined" ? this.attributes.subtitle.value : "";
|
||||||
this.shadow.appendChild(clone);
|
this.shadow.appendChild(clone);
|
||||||
this.style.display = "none";
|
this.shadow.getElementById("wrapper").style.display = "none";
|
||||||
this.calculateCircles();
|
this.calculateCircles();
|
||||||
window.addEventListener("load", () => {
|
window.addEventListener("load", () => {
|
||||||
this.style.display = "inline-block";
|
this.shadow.getElementById("wrapper").style.display = "inline-block";
|
||||||
console.log("loaded");
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
static get observedAttributes() { return ['title', 'subtitle']; }
|
static get observedAttributes() { return ['title', 'subtitle']; }
|
||||||
|
Loading…
Reference in New Issue
Block a user