From 697b8e466316f4e4109165222b4d9988599f3c64 Mon Sep 17 00:00:00 2001 From: codytseng Date: Thu, 19 Jun 2025 22:33:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/PageManager.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PageManager.tsx b/src/PageManager.tsx index 5cd66728..e13fd554 100644 --- a/src/PageManager.tsx +++ b/src/PageManager.tsx @@ -94,11 +94,12 @@ export function PageManager({ maxStackSize = 5 }: { maxStackSize?: number }) { const ignorePopStateRef = useRef(false) useEffect(() => { + const hasHistoryState = !!history.state window.history.pushState(null, '', window.location.href) if (window.location.pathname !== '/') { if ( ['/users', '/notes', '/relays'].some((path) => window.location.pathname.startsWith(path)) && - !history.state + !hasHistoryState ) { setIsShared(true) }