fix(atom-window): The worker window should also auto-reload on crash

Neverclose applies to both the main window and the worker window

T1640
This commit is contained in:
Ben Gotow 2015-09-14 11:43:24 -07:00
parent e094261470
commit 9b0ea76681

View file

@ -170,7 +170,7 @@ class AtomWindow
@browserWindow.webContents.on 'crashed', =>
global.application.exit(100) if @exitWhenDone
if @mainWindow
if @neverClose
@browserWindow.restart()
else
dialog = require 'dialog'