initial files upload

This commit is contained in:
2020-07-10 18:48:19 +03:00
parent 9bf2bd37ae
commit 22b9e0e55d
4 changed files with 2230 additions and 0 deletions

26
index.js Normal file
View File

@ -0,0 +1,26 @@
const {app, BrowserWindow, Menu} = require('electron');
Menu.setApplicationMenu(false); // remove menu line
let win;
createWindow = () => {
win = new BrowserWindow({
width: 1280,
height: 720,
icon: __dirname + '/assets/icon.ico'
});
win.loadURL('https://google.com/'); // url to open
// win.webContents.openDevTools(); // open development tools
win.on('closed', () => {
win = null;
});
}
app.on('ready', createWindow);
app.on('window-all-closed', () => {
app.quit();
});