mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-26 21:39:43 +02:00
refactor(ZeroProvider): simplify route handling by removing desktop check for public routes
This commit is contained in:
parent
3ce759f1d6
commit
f14c471a03
1 changed files with 1 additions and 1 deletions
|
|
@ -250,7 +250,7 @@ export function ZeroProvider({ children }: { children: React.ReactNode }) {
|
|||
const pathname = usePathname();
|
||||
const isDesktop = typeof window !== "undefined" && !!window.electronAPI;
|
||||
|
||||
if (!isDesktop && isPublicRoute(pathname)) {
|
||||
if (isPublicRoute(pathname)) {
|
||||
return <>{children}</>;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue