From f843132d5e8bdbcb383f86b86dce8fe5925a5b68 Mon Sep 17 00:00:00 2001 From: mrilyew <99399973+mrilyew@users.noreply.github.com> Date: Sat, 24 May 2025 22:03:06 +0300 Subject: [PATCH] fix: router recursion --- Web/static/js/router.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Web/static/js/router.js b/Web/static/js/router.js index 4882926a..fa4fdbda 100644 --- a/Web/static/js/router.js +++ b/Web/static/js/router.js @@ -401,8 +401,10 @@ window.addEventListener('popstate', (e) => { return }*/ - window.router.route({ - url: location.href, - push_state: false, - }) + if(e.state != null) { + window.router.route({ + url: location.href, + push_state: false, + }) + } })