Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
3f2a1004
Commit
3f2a1004
authored
Jul 25, 2023
by
Jeffrey Morgan
Browse files
app: log app errors to `console`
parent
95397416
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
app/src/index.ts
app/src/index.ts
+2
-6
No files found.
app/src/index.ts
View file @
3f2a1004
...
...
@@ -54,12 +54,8 @@ function firstRunWindow() {
// and load the index.html of the app.
welcomeWindow
.
loadURL
(
MAIN_WINDOW_WEBPACK_ENTRY
)
welcomeWindow
.
on
(
'
ready-to-show
'
,
()
=>
welcomeWindow
.
show
())
// for debugging
// welcomeWindow.webContents.openDevTools()
if
(
process
.
platform
===
'
darwin
'
)
{
app
.
dock
.
hide
()
}
...
...
@@ -215,10 +211,10 @@ if (app.isPackaged) {
}
autoUpdater
.
on
(
'
error
'
,
e
=>
{
logger
.
error
(
`update check failed -
${
e
.
message
}
`
)
console
.
error
(
`update check failed -
${
e
.
message
}
`
)
})
autoUpdater
.
on
(
'
update-downloaded
'
,
(
event
,
releaseNotes
,
releaseName
)
=>
{
autoUpdater
.
on
(
'
update-downloaded
'
,
(
_
,
releaseNotes
,
releaseName
)
=>
{
dialog
.
showMessageBox
({
type
:
'
info
'
,
...
...
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