Moved electron related stuff into app folder

This commit is contained in:
Joel Collins 2019-05-02 14:48:25 +01:00
parent b0a9021a02
commit 31f088f805
33 changed files with 18 additions and 18 deletions

View file

@ -1,27 +0,0 @@
const electron = require('electron')
const contextMenu = require('electron-context-menu')
const path = require('path')
const app = electron.app
const BrowserWindow = electron.BrowserWindow
let url = 'http://localhost:8080/'
// Set the application menu
require('./menu.js')
app.on('ready', () => {
let window = new BrowserWindow({
width: 1124,
height: 800,
icon: path.join(__dirname, '/icons/png/64x64.png')
})
contextMenu({
showCopyImageAddress: true,
showSaveImageAs: true,
showInspectElement: true,
});
window.loadURL(url)
})