Skip to content

Commit

Permalink
Merge pull request #540 from pac-guerreiro/fix/remotedev
Browse files Browse the repository at this point in the history
DEV - Throws warning when starting desktop
  • Loading branch information
stitesExpensify authored Apr 25, 2024
2 parents e43d32d + eef8dac commit 0318e5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/DevTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ class DevTools {
try {
// We don't want to augment the window type in a library code, so we use type assertion instead
// eslint-disable-next-line no-underscore-dangle, @typescript-eslint/no-explicit-any
const reduxDevtools: ReduxDevtools = (window as any).__REDUX_DEVTOOLS_EXTENSION__;
const reduxDevtools: ReduxDevtools = typeof window === 'undefined' ? undefined : (window as any).__REDUX_DEVTOOLS_EXTENSION__;

if ((options && options.remote) || typeof window === 'undefined' || !reduxDevtools) {
if (options?.remote || !reduxDevtools) {
return;
}

Expand Down

0 comments on commit 0318e5e

Please sign in to comment.