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
03577687
Commit
03577687
authored
Jul 04, 2017
by
Yulian Kuncheff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use serve, remove debug
parent
8037703b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
main.ts
Breeze.UI/main.ts
+2
-4
No files found.
Breeze.UI/main.ts
View file @
03577687
...
@@ -12,10 +12,8 @@ const os = require('os');
...
@@ -12,10 +12,8 @@ const os = require('os');
var
apiProcess
;
var
apiProcess
;
let
serve
;
let
serve
;
let
debug
;
const
args
=
process
.
argv
.
slice
(
1
);
const
args
=
process
.
argv
.
slice
(
1
);
serve
=
args
.
some
(
val
=>
val
===
"--serve"
);
serve
=
args
.
some
(
val
=>
val
===
"--serve"
);
debug
=
args
.
some
(
val
=>
val
===
"--debug"
);
if
(
serve
)
{
if
(
serve
)
{
require
(
'electron-reload'
)(
__dirname
,
{
require
(
'electron-reload'
)(
__dirname
,
{
...
@@ -46,7 +44,7 @@ function createWindow() {
...
@@ -46,7 +44,7 @@ function createWindow() {
slashes
:
true
slashes
:
true
}));
}));
if
(
serve
||
debug
)
{
if
(
serve
)
{
mainWindow
.
webContents
.
openDevTools
();
mainWindow
.
webContents
.
openDevTools
();
}
}
...
@@ -127,7 +125,7 @@ function startApi() {
...
@@ -127,7 +125,7 @@ function startApi() {
writeLogError
(
`exec error:
${
error
}
`
);
writeLogError
(
`exec error:
${
error
}
`
);
return
;
return
;
}
}
if
(
debug
)
{
if
(
serve
)
{
writeLog
(
`stdout:
${
stdout
}
`
);
writeLog
(
`stdout:
${
stdout
}
`
);
writeLog
(
`stderr:
${
stderr
}
`
);
writeLog
(
`stderr:
${
stderr
}
`
);
}
}
...
...
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