mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
14 lines
304 B
JavaScript
14 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);
|
||
|
|
};
|
||
|
|
}
|