Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private isElectron(): boolean {
return environment.electron.is();
}
protected isDownloadEnabled(uris: URI[]): boolean {
return !environment.electron.is() && uris.length > 0 && uris.every(u => u.scheme === 'file');
}