Fix appHost being improperly defined (#135387)

* Fix appHost being improperly defined

* Use null coalescing instead of ||
This commit is contained in:
Logan Ramos 2021-10-19 10:41:40 -04:00 committed by GitHub
parent 3dbfbfbaa5
commit 6cba118ac4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -383,7 +383,7 @@ export class WebWorkerExtensionHost extends Disposable implements IExtensionHost
environment: {
isExtensionDevelopmentDebug: this._environmentService.debugRenderer,
appName: this._productService.nameLong,
appHost: this._productService.embedderIdentifier || platform.isWeb ? 'web' : 'desktop',
appHost: this._productService.embedderIdentifier ?? (platform.isWeb ? 'web' : 'desktop'),
appUriScheme: this._productService.urlProtocol,
appLanguage: platform.language,
extensionDevelopmentLocationURI: this._environmentService.extensionDevelopmentLocationURI,