From f6f4660cd22c4b88e78c129f53288678e0dc347d Mon Sep 17 00:00:00 2001 From: nym21 Date: Fri, 13 Dec 2024 16:08:59 +0100 Subject: [PATCH] website: fix the previous fix --- website/scripts/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/scripts/main.js b/website/scripts/main.js index 9e3f3d7b7..17edce5b5 100644 --- a/website/scripts/main.js +++ b/website/scripts/main.js @@ -1311,10 +1311,10 @@ function initFrameSelectors() { function setAsideParent() { const { clientWidth } = window.document.documentElement; const { aside, body, main } = elements; - if (clientWidth >= consts.MEDIUM_WIDTH && aside.parentElement !== body) { - body.append(aside); - } else if (aside.parentElement !== main) { - main.append(aside); + if (clientWidth >= consts.MEDIUM_WIDTH) { + aside.parentElement !== body && body.append(aside); + } else { + aside.parentElement !== main && main.append(aside); } }