mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-18 02:31:56 +10:00
remove annoying confirmation dialog box
This commit is contained in:
@ -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
|
// eslint-disable-next-line import/prefer-default-export
|
||||||
export const wrapRootElement = ({ element }) => (
|
export const wrapRootElement = ({ element }) => (
|
||||||
<SettingsProvider>
|
<SettingsProvider>
|
||||||
|
|||||||
Reference in New Issue
Block a user