Skip to content

Commit b14cb1c

Browse files
committed
In SPA we don't check if we are in the browser
1 parent 3bde536 commit b14cb1c

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/spa.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { start } from "./start";
33
import type { RegisterLink, RegisteredLinkProps } from "./link";
44
import { setLink } from "./link";
55
import type { ColorScheme } from "./useIsDark";
6-
import { isBrowser } from "./tools/isBrowser";
76

87
export type { RegisterLink, RegisteredLinkProps };
98

@@ -20,11 +19,9 @@ export function startReactDsfr(params: {
2019
setLink({ Link });
2120
}
2221

23-
if (isBrowser) {
24-
start({
25-
defaultColorScheme,
26-
verbose,
27-
"nextParams": undefined
28-
});
29-
}
22+
start({
23+
defaultColorScheme,
24+
verbose,
25+
"nextParams": undefined
26+
});
3027
}

0 commit comments

Comments
 (0)