11 lines
263 B
JavaScript
11 lines
263 B
JavaScript
|
var ipcRenderer = require('electron').ipcRenderer,
|
||
|
light = {};
|
||
|
//console.log(ipcRenderer.sendSync('light', { 'fuck' : true }) );
|
||
|
|
||
|
|
||
|
light.set = function (color) {
|
||
|
'use strict';
|
||
|
console.log('color: ' + color.join(','));
|
||
|
ipcRenderer.sendSync('light', color);
|
||
|
};
|