Commit fdee7e4d authored by dev0tion's avatar dev0tion

Fix first time tray icon conversion error

parent 4608f1d6
...@@ -56,7 +56,7 @@ function createWindow() { ...@@ -56,7 +56,7 @@ function createWindow() {
// Emitted when the window is going to close. // Emitted when the window is going to close.
mainWindow.on('close', function () { mainWindow.on('close', function () {
if (process.platform !== 'darwin') { if (process.platform !== 'darwin' && !serve) {
var http = require('http'); var http = require('http');
const options = { const options = {
hostname: 'localhost', hostname: 'localhost',
...@@ -141,9 +141,10 @@ function createTray() { ...@@ -141,9 +141,10 @@ function createTray() {
var iconPath var iconPath
if (os.platform() === 'win32') { if (os.platform() === 'win32') {
iconPath = __dirname + '/assets/images/breeze-logo-tray.ico'; iconPath = '.\src\assets\images\breeze-logo-tray.ico';
} else { } else {
iconPath = __dirname + '/assets/images/breeze-logo-tray.png'; // iconPath = path.join(__dirname + '//assets//images//breeze-logo-tray.png');
iconPath = './src/assets/images/breeze-logo-tray.png';
} }
appIcon = new Tray(iconPath); appIcon = new Tray(iconPath);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment