Skip to content

Commit

Permalink
upgrade to Electron 9.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
4ch1m committed Jul 10, 2020
1 parent aed7e65 commit 4e58ff7
Show file tree
Hide file tree
Showing 3 changed files with 339 additions and 209 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const {app, BrowserWindow} = require('electron');
const {app, BrowserWindow, nativeImage} = require('electron');
const windowStateKeeper = require('electron-window-state');

let mainWindow;
Expand All @@ -10,7 +10,7 @@ function createWindow() {
});

mainWindow = new BrowserWindow({
icon: __dirname + '/spritemate/dist/img/favicon/android-chrome-256x256.png',
icon: nativeImage.createFromPath(__dirname + '/spritemate/dist/img/favicon/android-chrome-256x256.png'),
x: mainWindowState.x,
y: mainWindowState.y,
width: mainWindowState.width,
Expand Down
Loading

0 comments on commit 4e58ff7

Please sign in to comment.