From 6f78ad944fa6d1a2367ffcb656fbe2545fa9d6a3 Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Wed, 31 Jan 2024 15:01:13 +0100 Subject: [PATCH] =?UTF-8?q?Do=20not=20set=20campground=5Fmap=E2=80=99s=20h?= =?UTF-8?q?eight=20via=20JavaScript?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It already has a height set via CSS; no need to overwrite it. --- web/static/map.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/static/map.js b/web/static/map.js index f15b281..978cc60 100644 --- a/web/static/map.js +++ b/web/static/map.js @@ -2,7 +2,9 @@ 'use strict'; const container = document.getElementById('campground_map'); - container.style.height = '80vh'; + if (!container) { + console.warn('could not find map container'); + } const svg = container.childNodes[0]; svg.remove();