Do not set campground_map’s height via JavaScript

It already has a height set via CSS; no need to overwrite it.
This commit is contained in:
jordi fita mas 2024-01-31 15:01:13 +01:00
parent ca7d343810
commit 6f78ad944f
1 changed files with 3 additions and 1 deletions

View File

@ -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();