Skip to content

Commit 86933c3

Browse files
authored
Merge pull request #430 from WanielDeiss/master
cast isElectron to boolean #429
2 parents aeb3496 + ee06695 commit 86933c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/core/services/electron/electron.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class ElectronService {
1717
fs: typeof fs;
1818

1919
get isElectron(): boolean {
20-
return window && window.process && window.process.type;
20+
return !!(window && window.process && window.process.type);
2121
}
2222

2323
constructor() {

0 commit comments

Comments
 (0)