mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-14 00:32:35 +10:00
bringing back the service worker
This commit is contained in:
@ -27,6 +27,17 @@ 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>
|
||||
|
||||
Reference in New Issue
Block a user