Skip to content
This repository was archived by the owner on Jul 27, 2018. It is now read-only.

Commit dcd640c

Browse files
dballanceMikeRyanDev
authored andcommitted
fix(extension): Allow universal rendering (#23)
Allow universal rendering by utilizing a more stringent check for the existence of the window global.
1 parent e2ec58e commit dcd640c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/instrument.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Extension, REDUX_DEVTOOLS_EXTENSION } from './extension';
77
const REDUX_DEVTOOLS_EXTENSION_PROVIDER = {
88
provide: REDUX_DEVTOOLS_EXTENSION,
99
useFactory() {
10-
if (window && (window as any).devToolsExtension) {
10+
if (typeof window !== 'undefined' && (window as any).devToolsExtension) {
1111
return (window as any).devToolsExtension;
1212
}
1313

0 commit comments

Comments
 (0)