fix: 🐛
This commit is contained in:
parent
47949a81be
commit
e9f8b2166e
1 changed files with 2 additions and 1 deletions
|
|
@ -92,7 +92,8 @@ export function PageManager({ maxStackSize = 5 }: { maxStackSize?: number }) {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (window.location.pathname !== '/') {
|
if (window.location.pathname !== '/') {
|
||||||
if (
|
if (
|
||||||
['/users', '/notes', '/relays'].some((path) => window.location.pathname.startsWith(path))
|
['/users', '/notes', '/relays'].some((path) => window.location.pathname.startsWith(path)) &&
|
||||||
|
!history.state
|
||||||
) {
|
) {
|
||||||
setIsShared(true)
|
setIsShared(true)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue