ソースを参照

Fix: linting errors

Evan / Fero 2 年 前
コミット
539c213ef6
2 ファイル変更3 行追加3 行削除
  1. 2 2
      app/lib/window.ts
  2. 1 1
      tabby-electron/src/index.ts

+ 2 - 2
app/lib/window.ts

@@ -398,14 +398,14 @@ export class Window {
             }
 
             // let color: string = theme.backgroundMore
-            let symbolColor: string = theme.foreground
+            const symbolColor: string = theme.foreground
 
             this.window.setTitleBarOverlay(
                 {
                     // color: '#00000000',
                     symbolColor: symbolColor,
                     height: 32,
-                }
+                },
             )
         })
 

+ 1 - 1
tabby-electron/src/index.ts

@@ -175,7 +175,7 @@ export default class ElectronModule {
 
     private updateWindowControlsColor () {
         // if windows and not using native frame, WCO does not exist, return.
-        if (this.hostApp.platform === Platform.Windows && this.config.store.appearance.frame == "native") {
+        if (this.hostApp.platform === Platform.Windows && this.config.store.appearance.frame === 'native') {
             return
         }