Restructured electron app
This commit is contained in:
parent
1e0c3a09d2
commit
6e109cc066
2 changed files with 30 additions and 14 deletions
19
app.dev.js
Normal file
19
app.dev.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
const electron = require('electron')
|
||||
const app = electron.app
|
||||
const BrowserWindow = electron.BrowserWindow
|
||||
const contextMenu = require('electron-context-menu');
|
||||
|
||||
let url = 'http://localhost:8080/'
|
||||
|
||||
app.on('ready', () => {
|
||||
let window = new BrowserWindow({width: 1124, height: 800})
|
||||
window.setMenu(null);
|
||||
|
||||
contextMenu({
|
||||
showCopyImageAddress: true,
|
||||
showSaveImageAs: true,
|
||||
showInspectElement: true,
|
||||
});
|
||||
|
||||
window.loadURL(url)
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue