Browse Source

windows fix

Eugene Pankov 6 years ago
parent
commit
dc813b8edb
1 changed files with 3 additions and 0 deletions
  1. 3 0
      terminus-core/src/services/touchbar.service.ts

+ 3 - 0
terminus-core/src/services/touchbar.service.ts

@@ -20,6 +20,9 @@ export class TouchbarService {
         private electron: ElectronService,
         private zone: NgZone,
     ) {
+        if (this.hostApp.platform !== Platform.macOS) {
+            return
+        }
         app.tabsChanged$.subscribe(() => this.update())
         app.activeTabChange$.subscribe(() => this.update())
         app.tabOpened$.subscribe(tab => {