feat: update doc

This commit is contained in:
2026-06-05 09:05:53 -03:00
parent fd8e9049bf
commit d09d695d29
11 changed files with 1091 additions and 15 deletions

View File

@@ -6,6 +6,26 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="manifest" href="/manifest.json" />
<title>Decoda</title>
<script>
(async function checkForUpdates() {
try {
const response = await fetch('/version.json?t=' + Date.now());
const newVersion = await response.json();
const lastVersion = sessionStorage.getItem('app_version');
if (lastVersion && lastVersion !== newVersion.commit) {
console.log('🔄 Novo deploy detectado. Recarregando...');
sessionStorage.setItem('app_version', newVersion.commit);
window.location.reload(true);
return;
}
sessionStorage.setItem('app_version', newVersion.commit);
} catch (e) {
console.warn('Falha ao verificar atualizações:', e);
}
})();
</script>
</head>
<body>
<div id="root"></div>