SymphonyElectron/js/eventEmitter.js
Kiran Niranjan b72e95fd37 Electron-56 (Always on top) (#127)
* ELECTRON-56 - Implemented always on top feature

* ELECTRON-56 - Made some code refactoring

* ELECTRON-56 - Also fetching the alwaysOnTop prop from the event emitter

* ELECTRON-56 - Refactored code

* ELECTRON-56 - Exported only the required methods in event emitter
2017-06-15 10:11:29 -07:00

10 lines
236 B
JavaScript

'use strict';
const EventEmitter = require('events').EventEmitter;
const eventEmitter = new EventEmitter();
// These method should only be used in main process
module.exports = {
emit: eventEmitter.emit,
on: eventEmitter.on
};