summaryrefslogtreecommitdiff
path: root/electron/src/main.js
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2019-04-18 10:14:51 -0400
committerLex Neva <github.com@lexneva.name>2019-04-18 10:14:51 -0400
commitbf43633560252c4b11c00cb028676d9a7b1968b8 (patch)
tree6a1af3bb4699dab3a8404772665ec20501778d83 /electron/src/main.js
parent0a41ad6f71dfbf30c35bdaaa5c40e953282378a3 (diff)
add icons
Diffstat (limited to 'electron/src/main.js')
-rw-r--r--electron/src/main.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/electron/src/main.js b/electron/src/main.js
index 2774ddc6..210e26ed 100644
--- a/electron/src/main.js
+++ b/electron/src/main.js
@@ -1,5 +1,7 @@
import { app, BrowserWindow, ipcMain, dialog } from 'electron';
var fs = require('fs');
+var path = require('path')
+var tmp = require('tmp')
// 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.
@@ -7,7 +9,7 @@ let mainWindow;
const createWindow = () => {
// Create the browser window.
- mainWindow = new BrowserWindow();
+ mainWindow = new BrowserWindow({icon: path.join(__dirname, 'assets/icons/png/512x512.png')});
mainWindow.maximize();