From 0cecf8a4589c655072efe41df195e437afd53214 Mon Sep 17 00:00:00 2001 From: Matt Walsh Date: Fri, 5 Aug 2022 12:05:14 -0500 Subject: [PATCH] progress as html --- server/scripts/modules/weatherdisplay.js | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) 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) {