From bd5f3e76711a97dac1a2ea79b596ba20084b7d99 Mon Sep 17 00:00:00 2001 From: Nikiroy78 <35032449+Nikiroy78@users.noreply.github.com> Date: Tue, 20 Jun 2023 15:09:09 +0300 Subject: [PATCH] Fix mobile alert --- assets/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/main.js b/assets/main.js index f461b1c..2b03636 100644 --- a/assets/main.js +++ b/assets/main.js @@ -25,7 +25,7 @@ setTimeout(async () => fl.go(window.location.pathname + location.search), 50); let isMobile = window.screen.availWidth / window.screen.availHeight <= 1.45; -if (isMobile && !document.cookie.includes('warning_showed=true;')) { +if (isMobile && !document.cookie.includes('warning_showed=true')) { // Я это уберу как только буду уверен, что на мобильной версии нет никаких проблем fl.go('/mobile-warning?go=' + new URLSearchParams(location.pathname + location.search).toString().slice(0, -1)); } @@ -33,7 +33,7 @@ if (isMobile && !document.cookie.includes('warning_showed=true;')) { function goFromMobileWarning () { const currentURL = new URL(location.href); fl.go(currentURL.searchParams.get("go")); - if (!document.cookie.includes('warning_showed=true;')) document.cookie += 'warning_showed=true;'; + if (!document.cookie.includes('warning_showed=true')) document.cookie += 'warning_showed=true;'; } let mainMenuErrorHandled = false;