Be graceful about pathsToOpen string value

Gently convert it to an array of strings before opening

Closes #5340
This commit is contained in:
Kevin Sawicki
2015-02-02 18:16:47 -08:00
parent 853ad9cee3
commit 312e4e0e8a

View File

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