From 885e4722af6a8ea6c8cef839603af081f3a430d1 Mon Sep 17 00:00:00 2001 From: SBD Date: Tue, 5 Dec 2023 21:11:36 +0300 Subject: [PATCH] 0.8.481 --- static/js/global_js.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/js/global_js.js b/static/js/global_js.js index 782217a..bb1727e 100644 --- a/static/js/global_js.js +++ b/static/js/global_js.js @@ -24,6 +24,11 @@ function middleWareJS(){ body.style.overflow = "" } } + if (!window.location.href.includes("mobile") && !window.location.href.includes("route_search_results")){ + window.location.href = window.location.href + `?mobile=${getInfoAboutUser() === 'mobile'}` + } else if (window.location.href.includes("route_search_results")){ + window.location.href = window.location.href + `&mobile=${getInfoAboutUser() === 'mobile'}` + } }