From 26b1ddbcaa491d8bc1463b6fe1d4cad260d9fba8 Mon Sep 17 00:00:00 2001 From: otrok7 <50595291+otrok7@users.noreply.github.com> Date: Mon, 9 Sep 2024 15:49:47 +0200 Subject: [PATCH] cleanup --- croutonjs/meetingMap/js/meeting_map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/croutonjs/meetingMap/js/meeting_map.js b/croutonjs/meetingMap/js/meeting_map.js index 2a0d793..08db236 100644 --- a/croutonjs/meetingMap/js/meeting_map.js +++ b/croutonjs/meetingMap/js/meeting_map.js @@ -358,12 +358,12 @@ function MeetingMap(inConfig) { if (dd) dd.style.display = "none"; gDelegate.modalOn(); if (swipableModal) { - const body = document.getElementsByTagName("BODY")[0]; + const body = document.body; g_overflowX = body.style.overflowX; const newTop = -window.scrollY+'px'; body.style.overflowX = 'hidden'; body.style.position = 'fixed'; - document.body.style.setProperty('top', newTop, 'important'); + body.style.setProperty('top', newTop, 'important'); } } function showFilterDialog(e) {