Don't nudge to refresh in localhost

This will keep appearing if the dev branch is behind master.
This commit is contained in:
infinite-persistence 2022-07-08 19:04:40 +08:00
parent 73e6dfd399
commit d16ae73c0d
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -290,10 +290,12 @@ export function doMinVersionCheck() {
export function doMinVersionSubscribe() {
return (dispatch) => {
// @if process.env.NODE_ENV='production'
dispatch(doMinVersionCheck());
const CHECK_UPGRADE_INTERVAL_MS = 60 * 60 * 1000;
setInterval(() => dispatch(doMinVersionCheck()), CHECK_UPGRADE_INTERVAL_MS);
// @endif
};
}