Files
discordeno/docs/gatsby-browser.js
2020-07-12 22:14:55 -04:00

9 lines
233 B
JavaScript

export const onServiceWorkerUpdateReady = () => {
const answer = window.confirm(
`This tutorial has been updated. ` +
`Reload to display the latest version?`
)
if (answer === true) {
window.location.reload()
}
}