hyper/app/lib/utils/config.js
2016-07-16 11:54:48 -07:00

13 lines
316 B
JavaScript

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