Make atom.open work with parameters.

This commit is contained in:
Cheng Zhao
2013-05-25 14:38:04 +08:00
parent 0cdbfed7ab
commit 462bd77ad5
2 changed files with 8 additions and 9 deletions

View File

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