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 6e934e9 commit 408ae94Copy full SHA for 408ae94
browser.js
@@ -40,7 +40,7 @@ function useColors() {
40
// NB: In an Electron preload script, document will be defined but not fully
41
// initialized. Since we know we're in Chrome, we'll just detect this case
42
// explicitly
43
- if (typeof window !== 'undefined' && 'process' in window && window.process.type === 'renderer') {
+ if (typeof window !== 'undefined' && typeof window.process !== 'undefined' && window.process.type === 'renderer') {
44
return true;
45
}
46
0 commit comments