Make atom.crashMainProcess and atom.crashRenderProcess work.

This commit is contained in:
Cheng Zhao
2013-06-02 00:34:12 +08:00
parent eefc18202f
commit 1aca554ae3

View File

@@ -250,10 +250,10 @@ window.atom =
throw new Error('atom.getUpdateStatus is not implemented')
crashMainProcess: ->
throw new Error('atom.crashMainProcess is not implemented')
remote.process.crash()
crashRenderProcess: ->
throw new Error('atom.crashRenderProcess is not implemented')
process.crash()
requireUserInitScript: ->
userInitScriptPath = fsUtils.join(config.configDirPath, "user.coffee")