cast isElectron to boolean #429

This commit is contained in:
Daniel Weiß
2020-01-10 06:03:24 +01:00
committed by GitHub
parent aeb349698a
commit ee0669521d

View File

@@ -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() {