Don't fail if event is undefined.

Unclear why this is undefined, but apparently it is.
This commit is contained in:
joshaber
2015-12-30 14:33:23 -05:00
parent 7024e000a8
commit 5c14d3e99b

View File

@@ -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.