mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-11 04:48:44 +03:00
Use dev window bootstrap file when in dev mode
This commit is contained in:
parent
ec70950b39
commit
85cf53c210
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user