Browse Source

refactor: add alert to notify user

after upgrading show alert to notify user to clear old cache by hard refresh

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/921/head
Pranav C 3 years ago
parent
commit
eae07735d6
  1. 4
      packages/nc-gui/app.html

4
packages/nc-gui/app.html

@ -9,8 +9,8 @@
<script>
setTimeout(() => {
if (document.getElementById('nuxt-loading')) {
if (!(window.$nuxt && window.$nuxt._isDev) && confirm('If you upgraded NocoDB, please click OK')) {
window.location.reload(true)
if (!(window.$nuxt && window.$nuxt._isDev) ) {
alert('If you upgraded NocoDB, please do a hard refresh. \r\n\r\nMac users do : cmd + shift + r \r\nOther users do : ctrl + shift + r')
}
}
}, 16000)

Loading…
Cancel
Save