Replace file-read-then-parse scenario with a require of the config json file
This commit is contained in:
parent
4791b7e59e
commit
df39043100
|
@ -20,7 +20,7 @@ var { remote, ipcRenderer } = require('electron'),
|
|||
mscript = require('./lib/mscript.js');
|
||||
|
||||
|
||||
mcopy.cfg = JSON.parse(fs.readFileSync('./data/cfg.json'), 'utf8');
|
||||
mcopy.cfg = require('./data/cfg.json')
|
||||
|
||||
/******
|
||||
State shared by ALL interfaces
|
||||
|
|
Loading…
Reference in New Issue