Skip to content

Commit

Permalink
Use remote monitoring only when remote parameter specified
Browse files Browse the repository at this point in the history
  • Loading branch information
zalmoxisus committed Aug 23, 2016
1 parent 12b7621 commit cff5875
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
],
"dependencies": {
"jsan": "^3.1.3",
"remotedev": "^0.2.0",
"remotedev": "^0.2.1",
"remotedev-utils": "^0.0.3"
}
}
4 changes: 3 additions & 1 deletion src/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import mobx from 'mobx';
import spy from './spy';

export default function dev(store, config) {
if (config && !config.remote && (typeof window === 'undefined' || !window.devToolsExtension)) {
if (
(!config || !config.remote) && (typeof window === 'undefined' || !window.devToolsExtension)
) {
return store;
}

Expand Down

0 comments on commit cff5875

Please sign in to comment.