Skip to content

Commit

Permalink
add isWeb OS context when clause
Browse files Browse the repository at this point in the history
Signed-off-by: Mohit Suman <mohit.skn@gmail.com>
  • Loading branch information
mohitsuman authored and azatsarynnyy committed Sep 28, 2020
1 parent 8cfbd17 commit 767f14d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/browser/common-frontend-contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ export class CommonFrontendContribution implements FrontendApplicationContributi
this.contextKeyService.createKey<boolean>('isLinux', OS.type() === OS.Type.Linux);
this.contextKeyService.createKey<boolean>('isMac', OS.type() === OS.Type.OSX);
this.contextKeyService.createKey<boolean>('isWindows', OS.type() === OS.Type.Windows);
this.contextKeyService.createKey<boolean>('isWeb', !this.isElectron());

this.initResourceContextKeys();
this.registerCtrlWHandling();
Expand Down

0 comments on commit 767f14d

Please sign in to comment.