Use dev window bootstrap file when in dev mode

This commit is contained in:
Kevin Sawicki 2013-09-20 13:52:58 -07:00
parent ec70950b39
commit 85cf53c210

View File

@ -224,11 +224,12 @@ class AtomApplication
openedWindow = existingWindow
openedWindow.openPath(pathToOpen, initialLine)
else
bootstrapScript = require.resolve('./window-bootstrap')
if devMode
resourcePath = global.devResourcePath
bootstrapScript = require.resolve(path.join(global.devResourcePath, 'src', 'window-bootstrap'))
else
resourcePath = @resourcePath
bootstrapScript = require.resolve('./window-bootstrap')
openedWindow = new AtomWindow({pathToOpen, initialLine, bootstrapScript, resourcePath, devMode})
if pidToKillWhenClosed?