Files
nocodb/packages/nc-gui/app.html
Pranav C eae07735d6 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>
2022-01-05 20:22:22 +05:30

19 lines
449 B
HTML

<!DOCTYPE html>
<html {{ HTML_ATTRS }}>
<head {{ HEAD_ATTRS }}>
{{ HEAD }}
</head>
<body {{ BODY_ATTRS }}>
{{ APP }}
</body>
<script>
setTimeout(() => {
if (document.getElementById('nuxt-loading')) {
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)
</script>
</html>