remove annoying confirmation dialog box

This commit is contained in:
Amruth Pillai
2020-10-10 12:59:55 +05:30
parent eed71286f2
commit 5bf9d5ae9e

View File

@ -27,17 +27,6 @@ const theme = createMuiTheme({
},
});
export const onServiceWorkerUpdateReady = () => {
// eslint-disable-next-line no-alert
const answer = window.confirm(
`This application has been updated. ` +
`Reload to display the latest version?`,
);
if (answer === true) {
window.location.reload();
}
};
// eslint-disable-next-line import/prefer-default-export
export const wrapRootElement = ({ element }) => (
<SettingsProvider>