Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(main): show app title bar for win
  • Loading branch information
antonreshetov committed Apr 10, 2022
commit 990c7b3b2873dc92c2fd0b29370bf3b00a0bf8a1
3 changes: 2 additions & 1 deletion src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { subscribeToDialog } from './services/ipc/dialog'
import { checkForUpdate } from './services/update-check'

const isDev = process.env.NODE_ENV === 'development'
const isMac = process.platform === 'darwin'

createDb()
const apiServer = new ApiServer()
Expand All @@ -24,7 +25,7 @@ function createWindow () {
width: 1000,
height: 600,
...bounds,
titleBarStyle: 'hidden',
titleBarStyle: isMac ? 'hidden' : 'default',
webPreferences: {
preload: path.resolve(__dirname, 'preload.js'),
nodeIntegration: true,
Expand Down