Merge pull request #430 from WanielDeiss/master
cast isElectron to boolean #429
This commit is contained in:
@@ -17,7 +17,7 @@ export class ElectronService {
|
|||||||
fs: typeof fs;
|
fs: typeof fs;
|
||||||
|
|
||||||
get isElectron(): boolean {
|
get isElectron(): boolean {
|
||||||
return window && window.process && window.process.type;
|
return !!(window && window.process && window.process.type);
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|||||||
Reference in New Issue
Block a user