We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca48e27 commit ff3f902Copy full SHA for ff3f902
packages/node_modules/overmind/src/index.ts
@@ -105,12 +105,8 @@ export class Overmind<Config extends Configuration> implements Configuration {
105
The action factory function
106
*/
107
108
- if (
109
- !IS_PRODUCTION &&
110
- options.devtools !== false &&
111
- typeof window !== 'undefined'
112
- ) {
113
- if (location.hostname === 'localhost' || options.devtools) {
+ if (!IS_PRODUCTION && typeof window !== 'undefined') {
+ if (options.devtools || (location.hostname === 'localhost' && options.devtools !== false)) {
114
this.initializeDevtools(options.devtools, eventHub, proxyStateTree)
115
} else {
116
console.warn(
0 commit comments