Skip to content

Commit f8d3689

Browse files
fix(overmind): fix react native support
1 parent 61a2c82 commit f8d3689

File tree

1 file changed

+3
-1
lines changed
  • packages/node_modules/overmind/src

1 file changed

+3
-1
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ export class Overmind<Config extends Configuration> implements Configuration {
189189

190190
if (
191191
options.devtools ||
192-
(location.hostname === 'localhost' && options.devtools !== false)
192+
(typeof location !== 'undefined' &&
193+
location.hostname === 'localhost' &&
194+
options.devtools !== false)
193195
) {
194196
this.initializeDevtools(
195197
options.devtools === true ? 'localhost:3031' : options.devtools,

0 commit comments

Comments
 (0)