We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6077111 commit a583aa9Copy full SHA for a583aa9
src/ssr-polyfills.ts
@@ -4,8 +4,7 @@ import csrPlug, {Plug} from '@croct/plug';
4
* @internal
5
*/
6
export function isSsr(): boolean {
7
- return typeof window === 'undefined'
8
- || typeof window.document?.createElement === 'undefined';
+ return globalThis.window?.document?.createElement === undefined;
9
}
10
11
/**
0 commit comments