Skip to content

Commit

Permalink
cast isElectron to boolean #429
Browse files Browse the repository at this point in the history
  • Loading branch information
WanielDeiss authored Jan 10, 2020
1 parent aeb3496 commit ee06695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/core/services/electron/electron.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class ElectronService {
fs: typeof fs;

get isElectron(): boolean {
return window && window.process && window.process.type;
return !!(window && window.process && window.process.type);
}

constructor() {
Expand Down

0 comments on commit ee06695

Please sign in to comment.