react-native-onyx 2.0.33 → 2.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DevTools.js +2 -2
- package/package.json +1 -1
package/dist/DevTools.js
CHANGED
|
@@ -11,8 +11,8 @@ class DevTools {
|
|
|
11
11
|
try {
|
|
12
12
|
// We don't want to augment the window type in a library code, so we use type assertion instead
|
|
13
13
|
// eslint-disable-next-line no-underscore-dangle, @typescript-eslint/no-explicit-any
|
|
14
|
-
const reduxDevtools = window.__REDUX_DEVTOOLS_EXTENSION__;
|
|
15
|
-
if ((options
|
|
14
|
+
const reduxDevtools = typeof window === 'undefined' ? undefined : window.__REDUX_DEVTOOLS_EXTENSION__;
|
|
15
|
+
if ((options === null || options === void 0 ? void 0 : options.remote) || !reduxDevtools) {
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
18
|
return reduxDevtools.connect(options);
|