mirror of
https://github.com/atom/atom.git
synced 2026-02-04 03:35:20 -05:00
Make atom.open work with parameters.
This commit is contained in:
@@ -153,11 +153,8 @@ window.atom =
|
||||
themeNames = config.get("core.themes") ? ['atom-dark-ui', 'atom-dark-syntax']
|
||||
themeNames = [themeNames] unless _.isArray(themeNames)
|
||||
|
||||
open: (url) ->
|
||||
if url
|
||||
throw new Error('opening a url does not currently work', url)
|
||||
else
|
||||
ipc.sendChannel('open-folder')
|
||||
open: (url...) ->
|
||||
ipc.sendChannel('open', [url...])
|
||||
|
||||
openDev: (url) ->
|
||||
console.error("atom.openDev does not work yet")
|
||||
|
||||
Reference in New Issue
Block a user