From c6fb0bfaa3bbce6a89b76850d73ecb33cd6a54d3 Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 21 Jun 2016 15:25:46 -0400 Subject: [PATCH] Add transfer listener to main.js --- app/main.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/app/main.js b/app/main.js index 3d2d4e3..af66427 100644 --- a/app/main.js +++ b/app/main.js @@ -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 () { 'use strict'; mcopy.cfgInit(); @@ -466,6 +482,7 @@ var init = function () { proj.init(); cam.init(); + transfer.init(); capture.init(); arduino = require('./lib/mcopy-arduino.js')(mcopy.cfg, ee);