diff --git a/packages/node_modules/overmind/src/index.ts b/packages/node_modules/overmind/src/index.ts index 45681d55..5ad605a4 100644 --- a/packages/node_modules/overmind/src/index.ts +++ b/packages/node_modules/overmind/src/index.ts @@ -105,12 +105,8 @@ export class Overmind implements Configuration { The action factory function */ - if ( - !IS_PRODUCTION && - options.devtools !== false && - typeof window !== 'undefined' - ) { - if (location.hostname === 'localhost' || options.devtools) { + if (!IS_PRODUCTION && typeof window !== 'undefined') { + if (options.devtools || (location.hostname === 'localhost' && options.devtools !== false)) { this.initializeDevtools(options.devtools, eventHub, proxyStateTree) } else { console.warn(