Allow LaunchScenario::launch() to accept an existing app

This commit is contained in:
Ash Wilson
2019-04-18 17:05:25 -04:00
parent b854a698f7
commit 1a48b987ca

View File

@@ -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)
}