From ff3f90288d7ee04feca9161907f278219ab8183f Mon Sep 17 00:00:00 2001 From: Armando Cordova Date: Fri, 21 Dec 2018 17:00:09 -0500 Subject: [PATCH] false devtools shouldn't try to initializeDevtools Localhost should connect unless devtools is false --- packages/node_modules/overmind/src/index.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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(