Actually fix wonky update process

This commit is contained in:
metalex9
2019-11-10 14:23:21 -06:00
parent 6535a63588
commit 15f5f6d778
2 changed files with 4 additions and 3 deletions

View File

@@ -7,9 +7,7 @@ import './about.scss';
const handleUpdateClick = e => {
e.preventDefault();
applyUpdate(() => {
window.location.reload(true);
});
applyUpdate();
};
const AboutTabComponent = ({ version, isUpdateAvailable, isOnline }) => {

View File

@@ -16,6 +16,9 @@ if (isProduction) {
onUpdateReady: () => {
store.dispatch(indicateUpdateAvailable());
},
onUpdated: () => {
window.location.reload();
},
});
if (navigator.sendBeacon) {