Skip to content

Commit a583aa9

Browse files
committed
Update included files
1 parent 6077111 commit a583aa9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ssr-polyfills.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import csrPlug, {Plug} from '@croct/plug';
44
* @internal
55
*/
66
export function isSsr(): boolean {
7-
return typeof window === 'undefined'
8-
|| typeof window.document?.createElement === 'undefined';
7+
return globalThis.window?.document?.createElement === undefined;
98
}
109

1110
/**

0 commit comments

Comments
 (0)