From b9a85031bd21698e2f10c7e21f12ac4b1509410d Mon Sep 17 00:00:00 2001 From: Matt Walsh Date: Wed, 23 Sep 2020 10:39:03 -0500 Subject: [PATCH] properly add canvases to container --- server/scripts/modules/weatherdisplay.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/server/scripts/modules/weatherdisplay.js b/server/scripts/modules/weatherdisplay.js index 05b2993..8676e86 100644 --- a/server/scripts/modules/weatherdisplay.js +++ b/server/scripts/modules/weatherdisplay.js @@ -95,8 +95,14 @@ class WeatherDisplay { // only create it once if (this.elemId) return; this.elemId = elemId; + + // create a canvas + const canvas = document.createElement('template'); + canvas.innerHTML = `