mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Use dev window bootstrap file when in dev mode
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user