Use node's Environment feature to add "require" in renderer.

This commit is contained in:
Cheng Zhao 2013-12-15 14:20:28 +08:00
parent 2413eebd7b
commit 886ebdb002
16 changed files with 180 additions and 166 deletions

View file

@ -10,7 +10,7 @@ app.getHomeDir = ->
process.env[if process.platform is 'win32' then 'USERPROFILE' else 'HOME']
app.getBrowserWindows = ->
require('../../atom/objects-registry.js').getAllWindows()
require('../../lib/objects-registry.js').getAllWindows()
app.setApplicationMenu = (menu) ->
require('menu').setApplicationMenu menu