mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Allow LaunchScenario::launch() to accept an existing app
This commit is contained in:
@@ -485,7 +485,9 @@ class LaunchScenario {
|
||||
}
|
||||
|
||||
async launch (options) {
|
||||
const app = this.addApplication()
|
||||
const app = options.app || this.addApplication()
|
||||
delete options.app
|
||||
|
||||
if (options.pathsToOpen) {
|
||||
options.pathsToOpen = this.convertPaths(options.pathsToOpen)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user