<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<meta name="theme-color" content="#0E0C13" />
<!-- iOS standalone (Home Screen) app behaviour. iOS gives installed web apps
their own isolated storage + service worker, so these help it launch and
run as a proper standalone app. -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Asura Offline" />
<link rel="icon" type="image/png" sizes="48x48" href="/favicon-48.png" />
<link rel="icon" type="image/png" sizes="192x192" href="/icon-192.png" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<!-- Bebas Neue is the Asura wordmark face, used on the landing screen.
That screen only ever renders in a browser tab (the installed app skips
it), so a missing font offline costs nothing. -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap" rel="stylesheet" />
<title>Asura Offline</title>
<!-- Grey-screen guard. A browser holding an old saved copy of this page asks
for that build's app files; once they are gone the app never starts and
only the background shows (Ctrl+Shift+R fixed it). If an app file fails
to load while online, drop the saved app copy (never the downloaded
series, which live in IndexedDB) and reload once onto the current build.
At most once per 5 minutes, so it can't loop. -->
<script>
(function () {
var KEY = 'asura-offline-recovered-at';
function recover() {
try {
if (Date.now() - (+sessionStorage.getItem(KEY) || 0) < 300000) return;
sessionStorage.setItem(KEY, String(Date.now()));
} catch (e) { /* storage blocked: still try once */ }
if (!navigator.onLine) return;
var jobs = [];
if ('serviceWorker' in navigator) {
jobs.push(navigator.serviceWorker.getRegistrations().then(function (rs) {
return Promise.all(rs.map(function (r) { return r.unregister(); }));
}));
}
if (window.caches) {
jobs.push(caches.keys().then(function (ks) {
return Promise.all(ks.filter(function (k) { return k.indexOf('workbox-precache') === 0; })
.map(function (k) { return caches.delete(k); }));
}));
}
Promise.all(jobs).catch(function () {}).then(function () { location.reload(); });
}
window.addEventListener('error', function (e) {
var t = e.target;
if (t && (t.tagName === 'SCRIPT' || t.tagName === 'LINK')) {
var u = t.src || t.href || '';
if (u.indexOf('/assets/') !== -1) recover();
}
}, true);
window.addEventListener('vite:preloadError', recover);
window.addEventListener('unhandledrejection', function (e) {
var m = String((e.reason && e.reason.message) || e.reason || '');
if (/dynamically imported module|Importing a module script failed/i.test(m)) recover();
});
})();
</script>
<script type="module" crossorigin src="/assets/index-DrAOHTRC.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-zZpEGfPB.css">
<link rel="manifest" href="/manifest.webmanifest"></head>
<body>
<div id="root"></div>
</body>
</html>