From 2f3699a70674c7681bbe4bc1344ce4e119f0420b Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 2 Oct 2023 06:14:35 +0300 Subject: [PATCH] move to bottom again so it doesnt interfere with the #context thing --- files/assets/js/core.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/files/assets/js/core.js b/files/assets/js/core.js index 6bb1653021..be9ae53028 100644 --- a/files/assets/js/core.js +++ b/files/assets/js/core.js @@ -1,7 +1,3 @@ -if (location.hash.startsWith("#m-")) { - history.replaceState({}, '', location.href.split('#')[0]) -} - const SITE_FULL_IMAGES = document.getElementById('SITE_FULL_IMAGES').value function getMessageFromJsonData(success, json) { @@ -713,3 +709,7 @@ addEventListener('touchmove', function (e) { return false; } }, {passive: false}); + +if (location.hash.startsWith("#m-")) { + history.replaceState({}, '', location.href.split('#')[0]) +}