From 89521a41660e65a1f61c8d5aafcf51beeb2263da Mon Sep 17 00:00:00 2001 From: Timothy Cyrus Date: Mon, 23 Nov 2015 21:16:42 -0500 Subject: [PATCH 1/3] Update main.js --- main.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/main.js b/main.js index a7a46d6..03c5540 100644 --- a/main.js +++ b/main.js @@ -1,12 +1,14 @@ -var app = require('app'); // Module to control application life. -var BrowserWindow = require('browser-window'); // Module to create native browser window. +'use strict'; +const electron = require('electron'); +const app = electron.app; // Module to control application life. +const BrowserWindow = electron.BrowserWindow; // Module to create native browser window. // Report crashes to our server. require('crash-reporter').start(); // Keep a global reference of the window object, if you don't, the window will // be closed automatically when the JavaScript object is garbage collected. -var mainWindow = null; +let mainWindow; // Quit when all windows are closed. app.on('window-all-closed', function() { @@ -24,7 +26,7 @@ app.on('ready', function() { mainWindow = new BrowserWindow({width: 800, height: 600}); // and load the index.html of the app. - mainWindow.loadUrl('file://' + __dirname + '/index.html'); + mainWindow.loadUrl(`file://${__dirname}/index.html`); // Open the DevTools. mainWindow.webContents.openDevTools(); From 81a25b578a2838e81458bdfafd47e9e4a8ffc538 Mon Sep 17 00:00:00 2001 From: Timothy Cyrus Date: Mon, 23 Nov 2015 21:28:34 -0500 Subject: [PATCH 2/3] Update main.js --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 03c5540..1660e3f 100644 --- a/main.js +++ b/main.js @@ -4,7 +4,7 @@ const app = electron.app; // Module to control application life. const BrowserWindow = electron.BrowserWindow; // Module to create native browser window. // Report crashes to our server. -require('crash-reporter').start(); +electron.crashReporter.start(); // Keep a global reference of the window object, if you don't, the window will // be closed automatically when the JavaScript object is garbage collected. From 575b1bcf73f46ef1f6339d9aaab2682109b62695 Mon Sep 17 00:00:00 2001 From: Timothy Cyrus Date: Mon, 23 Nov 2015 21:32:52 -0500 Subject: [PATCH 3/3] Update index.html --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index 6190698..8d710f0 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,7 @@ + Hello World!