mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-25 02:10:32 -06:00
b72e95fd37
* 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
10 lines
236 B
JavaScript
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
|
|
}; |