hyper/lib/actions/updater.js
2017-09-10 16:04:13 +02:00

19 lines
358 B
JavaScript

import {UPDATE_INSTALL, UPDATE_AVAILABLE} from '../constants/updater';
import rpc from '../rpc';
export function installUpdate() {
return {
type: UPDATE_INSTALL,
effect: () => {
rpc.emit('quit and install');
}
};
}
export function updateAvailable(version, notes) {
return {
type: UPDATE_AVAILABLE,
version,
notes
};
}