hyper/app/lib/utils/config.js
Guillermo Rauch 477e40e433 refactor
2016-07-13 13:45:14 -07:00

13 lines
304 B
JavaScript

import { ipcRenderer, remote } from 'electron';
const config = remote.require('./config');
export function getConfig () {
return config.getConfig();
}
export function subscribe (fn) {
ipcRenderer.on('config change', fn);
return () => {
ipcRenderer.removeListener('config change', fn);
};
}