From 5bf9d5ae9ebfb6bb614c88f9cad45e43c358eefb Mon Sep 17 00:00:00 2001 From: Amruth Pillai Date: Sat, 10 Oct 2020 12:59:55 +0530 Subject: [PATCH] remove annoying confirmation dialog box --- gatsby-browser.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/gatsby-browser.js b/gatsby-browser.js index 2ff0ee3e..1626bd79 100644 --- a/gatsby-browser.js +++ b/gatsby-browser.js @@ -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 }) => (