hyper/lib/actions/config.js
CHaBou 81709073cf
Keymaps are now updated without restarting (#2455)
* Reload keymaps without restarting

* Reattach key listeners when config have changed
2017-11-15 00:55:21 +01:00

17 lines
283 B
JavaScript

import {CONFIG_LOAD, CONFIG_RELOAD} from '../constants/config';
export function loadConfig(config) {
return {
type: CONFIG_LOAD,
config
};
}
export function reloadConfig(config) {
const now = Date.now();
return {
type: CONFIG_RELOAD,
config,
now
};
}