diff --git a/server/scripts/modules/weatherdisplay.js b/server/scripts/modules/weatherdisplay.js index 23daba1..fbc2d7b 100644 --- a/server/scripts/modules/weatherdisplay.js +++ b/server/scripts/modules/weatherdisplay.js @@ -449,18 +449,16 @@ class WeatherDisplay { loadTemplates() { this.templates = {}; - if (this.elemId !== 'progress') { - this.elem = document.getElementById(`${this.elemId}-html`); - if (!this.elem) return; - const templates = this.elem.querySelectorAll('.template'); - templates.forEach((template) => { - const className = template.classList[0]; - const node = template.cloneNode(true); - node.classList.remove('template'); - this.templates[className] = node; - template.remove(); - }); - } + this.elem = document.getElementById(`${this.elemId}-html`); + if (!this.elem) return; + const templates = this.elem.querySelectorAll('.template'); + templates.forEach((template) => { + const className = template.classList[0]; + const node = template.cloneNode(true); + node.classList.remove('template'); + this.templates[className] = node; + template.remove(); + }); } fillTemplate(name, fillValues) {