Don't nudge to refresh in localhost
This will keep appearing if the dev branch is behind master.
This commit is contained in:
parent
73e6dfd399
commit
d16ae73c0d
1 changed files with 2 additions and 0 deletions
|
@ -290,10 +290,12 @@ export function doMinVersionCheck() {
|
||||||
|
|
||||||
export function doMinVersionSubscribe() {
|
export function doMinVersionSubscribe() {
|
||||||
return (dispatch) => {
|
return (dispatch) => {
|
||||||
|
// @if process.env.NODE_ENV='production'
|
||||||
dispatch(doMinVersionCheck());
|
dispatch(doMinVersionCheck());
|
||||||
|
|
||||||
const CHECK_UPGRADE_INTERVAL_MS = 60 * 60 * 1000;
|
const CHECK_UPGRADE_INTERVAL_MS = 60 * 60 * 1000;
|
||||||
setInterval(() => dispatch(doMinVersionCheck()), CHECK_UPGRADE_INTERVAL_MS);
|
setInterval(() => dispatch(doMinVersionCheck()), CHECK_UPGRADE_INTERVAL_MS);
|
||||||
|
// @endif
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue