Merge pull request #430 from WanielDeiss/master

cast isElectron to boolean #429
This commit is contained in:
Maxime GRIS
2020-01-29 15:16:30 +01:00
committed by GitHub

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