mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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]
|
||||
: []
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user