We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fa597a commit d90b91dCopy full SHA for d90b91d
window.js
@@ -1,20 +1,19 @@
1
const {BrowserWindow} = require('electron');
2
const os = require('os');
3
4
+const isMac = os.platform() === 'darwin';
5
+
6
const winOption = {
7
width: 1100,
8
height: 768,
9
minWidth: 522,
- minHeight: 400
10
+ minHeight: 400,
11
+ frame: isMac
12
}
13
-const isDarwin = os.platform() === 'darwin';
-
14
function createWindow (opts={}) {
15
const win = new BrowserWindow(
- (isDarwin
16
- ? Object.assign({}, winOption, {titleBarStyle: 'hidden'})
17
- : winOption)
+ Object.assign({}, winOption, {titleBarStyle: 'hidden'})
18
);
19
20
if (opts.hasOwnProperty('url')) {
0 commit comments