mirror of
https://github.com/generativefm/generative.fm.git
synced 2026-01-10 07:07:59 -05:00
Actually fix wonky update process
This commit is contained in:
@@ -7,9 +7,7 @@ import './about.scss';
|
||||
|
||||
const handleUpdateClick = e => {
|
||||
e.preventDefault();
|
||||
applyUpdate(() => {
|
||||
window.location.reload(true);
|
||||
});
|
||||
applyUpdate();
|
||||
};
|
||||
|
||||
const AboutTabComponent = ({ version, isUpdateAvailable, isOnline }) => {
|
||||
|
||||
@@ -16,6 +16,9 @@ if (isProduction) {
|
||||
onUpdateReady: () => {
|
||||
store.dispatch(indicateUpdateAvailable());
|
||||
},
|
||||
onUpdated: () => {
|
||||
window.location.reload();
|
||||
},
|
||||
});
|
||||
|
||||
if (navigator.sendBeacon) {
|
||||
|
||||
Reference in New Issue
Block a user