We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aeb3496 + ee06695 commit 86933c3Copy full SHA for 86933c3
src/app/core/services/electron/electron.service.ts
@@ -17,7 +17,7 @@ export class ElectronService {
17
fs: typeof fs;
18
19
get isElectron(): boolean {
20
- return window && window.process && window.process.type;
+ return !!(window && window.process && window.process.type);
21
}
22
23
constructor() {
0 commit comments