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')