How to use the @theia/application-package/lib/environment.environment.electron function in @theia/application-package

To help you get started, we’ve selected a few @theia/application-package examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github eclipse-theia / theia / packages / filesystem / src / browser / download / file-download-command-contribution.ts View on Github external
protected isDownloadEnabled(uris: URI[]): boolean {
        return !environment.electron.is() && uris.length > 0 && uris.every(u => u.scheme === 'file');
    }

@theia/application-package

Theia application package API.

EPL-2.0
Latest version published 14 days ago

Package Health Score

93 / 100
Full package analysis

Similar packages