Fixed weird bug from last commit.

This commit is contained in:
Greenscreener 2019-07-15 21:06:25 +02:00
parent 4d655ee8c4
commit 895805bda1

View File

@ -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']; }