hyper/lib/actions/updater.js

23 lines
366 B
JavaScript
Raw Normal View History

2016-07-13 12:44:24 -08:00
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
};
}