Reload when new update available

This commit is contained in:
root
2021-11-23 11:53:08 +05:30
parent 49a018dea2
commit f3fb024b53
+1
View File
@@ -21,6 +21,7 @@ if (process.env.NODE_ENV === 'production') {
},
updated () {
console.log('New content is available; please refresh.')
window.location.reload()
},
offline () {
console.log('No internet connection found. App is running in offline mode.')