Skip to content

Commit

Permalink
Updated to electron 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jschr authored and pronebird committed Jul 15, 2018
1 parent cd4ed12 commit 720b867
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
9 changes: 1 addition & 8 deletions app/main.js
@@ -1,5 +1,4 @@
import path from 'path';
import url from 'url';
import { app, crashReporter, BrowserWindow, Menu } from 'electron';

const isDevelopment = process.env.NODE_ENV === 'development';
Expand Down Expand Up @@ -48,13 +47,7 @@ app.on('ready', async () => {
show: false,
});

mainWindow.loadURL(
url.format({
pathname: path.join(__dirname, 'index.html'),
protocol: 'file:',
slashes: true,
}),
);
mainWindow.loadFile(path.join(__dirname, 'index.html'));

// show window once on first load
mainWindow.webContents.once('did-finish-load', () => {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -35,9 +35,9 @@
"babel-preset-react": "^6.24.1",
"browser-sync": "^2.23.6",
"chai": "^4.1.0",
"electron": "^1.8.4",
"electron": "^2.0.5",
"electron-builder": "^20.0.7",
"electron-devtools-installer": "^2.1.0",
"electron-devtools-installer": "^2.2.4",
"electron-mocha": "^6.0.1",
"eslint": "^5.1.0",
"eslint-config-prettier": "^2.9.0",
Expand Down

0 comments on commit 720b867

Please sign in to comment.