Add transfer listener to main.js

This commit is contained in:
Matt 2016-06-21 15:25:46 -04:00
parent 84a8df4a78
commit c6fb0bfaa3
1 changed files with 17 additions and 0 deletions

View File

@ -456,6 +456,22 @@ log.info = function (action, service, status, display) {
} }
}; };
var transfer = {};
transfer.init = function () {
'use strict';
transfer.listen();
};
transfer.listen = function () {
'use strict';
ipcMain.on('transfer', function (event, arg) {
var res = '';
console.dir(event);
console.dir(arg);
event.returnValue = res;
});
};
var init = function () { var init = function () {
'use strict'; 'use strict';
mcopy.cfgInit(); mcopy.cfgInit();
@ -466,6 +482,7 @@ var init = function () {
proj.init(); proj.init();
cam.init(); cam.init();
transfer.init();
capture.init(); capture.init();
arduino = require('./lib/mcopy-arduino.js')(mcopy.cfg, ee); arduino = require('./lib/mcopy-arduino.js')(mcopy.cfg, ee);