mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Don't fail if event is undefined.
Unclear why this is undefined, but apparently it is.
This commit is contained in:
@@ -229,7 +229,7 @@ class AtomApplication
|
||||
@openUrl({urlToOpen, @devMode, @safeMode})
|
||||
|
||||
app.on 'activate-with-no-open-windows', (event) =>
|
||||
event.preventDefault()
|
||||
event?.preventDefault()
|
||||
@emit('application:new-window')
|
||||
|
||||
# A request from the associated render process to open a new render process.
|
||||
|
||||
Reference in New Issue
Block a user