hyper/lib/utils/config.js
Matheus Fernandes 1866104d03 [WIP] Use XO instead of Standard (#723)
* Bump `eslint-plugin-react`

* Add `eslint-config-xo-react`

* Add XO

* Remove eslint-related dependencies, add XO config and use XO as the linter

* Code style: Standard => XO 

* Use xo property to ignore files

* Fix remaining errors
2016-09-21 16:27:11 +02:00

15 lines
353 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);
ipcRenderer.on('plugins change', fn);
return () => {
ipcRenderer.removeListener('config change', fn);
};
}