Replace file-read-then-parse scenario with a require of the config json file

This commit is contained in:
mmcw-dev 2018-01-04 23:40:55 -05:00
parent 4791b7e59e
commit df39043100
1 changed files with 1 additions and 1 deletions

View File

@ -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