From ef9d0524e05bc556ed26f66a878120857a7c7317 Mon Sep 17 00:00:00 2001 From: grummi92 Date: Sat, 16 Dec 2017 02:19:02 +0100 Subject: [PATCH] simplified window icon file type selection --- electron/main.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/electron/main.js b/electron/main.js index 0d077d50..e3e5340f 100644 --- a/electron/main.js +++ b/electron/main.js @@ -138,16 +138,11 @@ function handleSquirrelEvent() { let mainWindow; let isQuitting = false; -let iconPath = __dirname + '/../resources/Icon.ico'; -if (process.platform === 'linux') { - iconPath = __dirname + '/../resources/Icon.png'; -} - function createWindow () { // Create the browser window using the state information mainWindow = new BrowserWindow({ title: 'Rambox' - ,icon: iconPath + ,icon: __dirname + '/../resources/Icon.' + (process.platform === 'linux' ? 'png' : 'ico') ,backgroundColor: '#FFF' ,x: config.get('x') ,y: config.get('y')