From 44d754c59d8d4bb0dba16b6b318dce30f4c7d049 Mon Sep 17 00:00:00 2001 From: Mike Resoli Date: Mon, 17 Oct 2016 13:40:13 +0100 Subject: [PATCH 1/3] Hid menu --- lib/main-menu.js | 4 +--- lib/main-window.js | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/main-menu.js b/lib/main-menu.js index f92b0282..56b7a0b4 100644 --- a/lib/main-menu.js +++ b/lib/main-menu.js @@ -190,6 +190,4 @@ var help = { module.exports = process.platform === 'darwin' ? [boost, file, edit, view, window, help] - : process.platform === 'win32' - ? [boost, file, view, help] - : [file, view, help] + : [] diff --git a/lib/main-window.js b/lib/main-window.js index 01a92ef5..16006946 100644 --- a/lib/main-window.js +++ b/lib/main-window.js @@ -3,11 +3,14 @@ const app = electron.app const BrowserWindow = electron.BrowserWindow const path = require('path') +var showMenu == process.platform == "Win32" ? false : true; + var mainWindow = new BrowserWindow({ width: 1080, height: 720, minWidth: 420, minHeight: 320, + autoHideMenuBar: showMenu, webPreferences: { zoomFactor: 1.0, blinkFeatures: 'OverlayScrollbars' From dd5c9bf3f63dfa5d0074175b4cd7f02a9505ee7a Mon Sep 17 00:00:00 2001 From: Mike Resoli Date: Wed, 19 Oct 2016 11:17:35 +0100 Subject: [PATCH 2/3] Spelling mistake in index.js --- browser/main/TopBar/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/main/TopBar/index.js b/browser/main/TopBar/index.js index 1e7f396d..86e938d8 100644 --- a/browser/main/TopBar/index.js +++ b/browser/main/TopBar/index.js @@ -74,7 +74,7 @@ class TopBar extends React.Component { if (storage == null) throw new Error('No storage to create a note') let folder = _.find(storage.folders, {key: params.folderKey}) if (folder == null) folder = storage.folders[0] - if (folder == null) throw new Error('No folder to craete a note') + if (folder == null) throw new Error('No folder to create a note') return { storage, From 26c859f14c7bce4e8b2dc439c3e1954b5b7013e9 Mon Sep 17 00:00:00 2001 From: Mike Resoli Date: Wed, 19 Oct 2016 14:41:01 +0100 Subject: [PATCH 3/3] added npm run vendor to build.md --- docs/build.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/build.md b/docs/build.md index 5ed7c03f..48d7a60f 100644 --- a/docs/build.md +++ b/docs/build.md @@ -29,6 +29,11 @@ $ npm run hot ``` > Actually the app can be start with `npm start`. However, the app will use the compiled script. +If the app gets stuck on load, you may need to run the following. +``` +$ npm run vendor +``` + By this, webpack will watch the code changes and apply it automatically. > ### Notice