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, 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 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'