Use node's Environment feature to add "require" in renderer.
This commit is contained in:
parent
2413eebd7b
commit
886ebdb002
16 changed files with 180 additions and 166 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue