mirror of
https://github.com/atom/atom.git
synced 2026-01-26 07:19:06 -05:00
Return an all-Promise for windows opened by urlsToOpen
This commit is contained in:
@@ -343,7 +343,9 @@ class AtomApplication extends EventEmitter {
|
||||
env
|
||||
})
|
||||
} else if (urlsToOpen && urlsToOpen.length > 0) {
|
||||
return urlsToOpen.map(urlToOpen => this.openUrl({urlToOpen, devMode, safeMode, env}))
|
||||
return Promise.all(
|
||||
urlsToOpen.map(urlToOpen => this.openUrl({urlToOpen, devMode, safeMode, env}))
|
||||
)
|
||||
} else {
|
||||
// Always open an editor window if this is the first instance of Atom.
|
||||
return this.openPath({
|
||||
|
||||
Reference in New Issue
Block a user