Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
4d04fd11
Commit
4d04fd11
authored
Jun 30, 2017
by
Pieterjan Vanhoof
Committed by
GitHub
Jun 30, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #133 from bokobza/master
OSX fix
parents
62e2f169
cfccb1a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
main.ts
Breeze.UI/main.ts
+13
-11
No files found.
Breeze.UI/main.ts
View file @
4d04fd11
...
@@ -58,18 +58,20 @@ function createWindow() {
...
@@ -58,18 +58,20 @@ 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
()
{
var
http
=
require
(
'http'
);
if
(
process
.
platform
!==
'darwin'
)
{
const
options
=
{
var
http
=
require
(
'http'
);
hostname
:
'localhost'
,
const
options
=
{
port
:
5000
,
hostname
:
'localhost'
,
path
:
'/api/node/shutdown'
,
port
:
5000
,
method
:
'POST'
path
:
'/api/node/shutdown'
,
method
:
'POST'
};
};
const
req
=
http
.
request
(
options
,
(
res
)
=>
{});
const
req
=
http
.
request
(
options
,
(
res
)
=>
{});
req
.
write
(
''
);
req
.
write
(
''
);
req
.
end
();
req
.
end
();
});
}
});
}
}
// This method will be called when Electron has finished
// This method will be called when Electron has finished
...
@@ -133,7 +135,7 @@ function createTray() {
...
@@ -133,7 +135,7 @@ function createTray() {
let
appIcon
=
null
;
let
appIcon
=
null
;
var
iconPath
var
iconPath
if
(
os
.
platform
==
'win32'
)
{
if
(
os
.
platform
()
=
==
'win32'
)
{
iconPath
=
__dirname
+
'/assets/images/breeze-logo-tray.ico'
;
iconPath
=
__dirname
+
'/assets/images/breeze-logo-tray.ico'
;
}
else
{
}
else
{
iconPath
=
__dirname
+
'/assets/images/breeze-logo-tray.png'
;
iconPath
=
__dirname
+
'/assets/images/breeze-logo-tray.png'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment