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("subtitleText").innerText = typeof this.attributes.subtitle !== "undefined" ? this.attributes.subtitle.value : "";
|
||||
this.shadow.appendChild(clone);
|
||||
this.style.display = "none";
|
||||
this.shadow.getElementById("wrapper").style.display = "none";
|
||||
this.calculateCircles();
|
||||
window.addEventListener("load", () => {
|
||||
this.style.display = "inline-block";
|
||||
console.log("loaded");
|
||||
this.shadow.getElementById("wrapper").style.display = "inline-block";
|
||||
});
|
||||
}
|
||||
static get observedAttributes() { return ['title', 'subtitle']; }
|
||||
|
Loading…
Reference in New Issue
Block a user