forked from drv687/rss_feed
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
25 lines (23 loc) · 695 Bytes
/
main.js
File metadata and controls
25 lines (23 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
'use strict';
const {dialog} = require('electron') //Add dialog window handler.
const electron = require('electron')
const {app, BrowserWindow} = electron
var onError = function(err,response){
console.error(err,response);
};
//Quit when all the windows are closed.
app.on('window-all-closed', function(){
if(process.platform !='darwin'){
app.quit();
}
});
app.on('ready', function(){
//Create browser window.
let theWindow = new BrowserWindow({width: 960, height: 600});
//Load index.html
theWindow.loadURL('file://' +__dirname + '/index.html');
theWindow.openDevTools() //Opens dev tools
theWindow.on('closed', function(){
theWindow = null;
});
});