Commit ae8a21d5903d982a209f049dc0e74c50a3ba0253
make shortcut keys for zoom/reload work on window and linux
Matt McKegg committed on 3/14/2017, 12:58:39 AMParent: 7628e2e86bc23fe70db4765213ff337c9451f8de
Files changed
index.js | changed |
lib/window.js | changed |
index.js | ||
---|---|---|
@@ -55,8 +55,9 @@ | ||
55 | 55 … | minWidth: 800, |
56 | 56 … | width: 1024, |
57 | 57 … | height: 768, |
58 | 58 … | titleBarStyle: 'hidden-inset', |
59 … | + autoHideMenuBar: true, | |
59 | 60 … | title: 'Patchwork', |
60 | 61 … | show: true, |
61 | 62 … | backgroundColor: '#EEE', |
62 | 63 … | webPreferences: { |
lib/window.js | ||
---|---|---|
@@ -6,9 +6,8 @@ | ||
6 | 6 … | var window = new electron.BrowserWindow(extend({ |
7 | 7 … | show: false |
8 | 8 … | }, opts)) |
9 | 9 … | |
10 | - window.setMenu(null) | |
11 | 10 … | electron.ipcMain.on('ready-to-show', handleReadyToShow) |
12 | 11 … | |
13 | 12 … | window.webContents.on('dom-ready', function () { |
14 | 13 … | window.webContents.executeJavaScript(` |
Built with git-ssb-web