package-node: remove settings hack and pass settings in electron globals
This commit is contained in:
parent
ac8414d9dc
commit
92f7f1dba8
3 changed files with 4 additions and 8 deletions
|
|
@ -1,7 +1,7 @@
|
|||
var {remote, ipcRenderer, shell} = eval('require(\'electron\')'),
|
||||
{dialog, Menu, MenuItem, app} = remote.require('electron'),
|
||||
menu = new Menu(),
|
||||
settings = remote.require('./main/settings'),
|
||||
settings = remote.getGlobal('settings'),
|
||||
packageInfos = remote.require('./package.json'),
|
||||
packageVersion = packageInfos.version,
|
||||
packageUrl = packageInfos.repository.url,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue