hyper/lib/actions/updater.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

22 lines
364 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
};
}