diff --git a/src/main/index.js b/src/main/index.js index 3693299ad7038..30babc47855fc 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -1017,8 +1017,8 @@ function runApp() { if ( typeof path !== 'string' || - (typeof query !== 'object' && query != null) || - (typeof searchQueryText !== 'string' && searchQueryText != null) + (query != null && typeof query !== 'object') || + (searchQueryText != null && typeof searchQueryText !== 'string') ) { return }