mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Be graceful about pathsToOpen string value
Gently convert it to an array of strings before opening Closes #5340
This commit is contained in:
@@ -216,6 +216,8 @@ class AtomApplication
|
||||
ipc.on 'open', (event, options) =>
|
||||
window = @windowForEvent(event)
|
||||
if options?
|
||||
if typeof options.pathsToOpen is 'string'
|
||||
options.pathsToOpen = [options.pathsToOpen]
|
||||
if options.pathsToOpen?.length > 0
|
||||
options.window = window
|
||||
@openPaths(options)
|
||||
|
||||
Reference in New Issue
Block a user