Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <link rel="icon" type="image/svg+xml" href="/vite.svg" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>PromptAid Vision</title> | |
| <!-- App meta --> | |
| <meta name="description" content="A comprehensive vision analysis platform for crisis mapping and drone image processing" /> | |
| <meta name="theme-color" content="#000000" /> | |
| <meta name="apple-mobile-web-app-capable" content="yes" /> | |
| <meta name="apple-mobile-web-app-status-bar-style" content="black" /> | |
| <meta name="apple-mobile-web-app-title" content="PromptAid" /> | |
| <!-- PWA manifest --> | |
| <link rel="manifest" href="/manifest.webmanifest" /> | |
| <link rel="dns-prefetch" href="//huggingface.co" /> | |
| <!-- Service Worker registration (root scope) + cleanup of old /static SW --> | |
| <script> | |
| if ('serviceWorker' in navigator) { | |
| // Clean up any old SW registered under /static (from previous deploys) | |
| navigator.serviceWorker.getRegistrations?.().then(regs => { | |
| for (const r of regs) { | |
| if (r.scope && r.scope.includes('/static/')) r.unregister(); | |
| } | |
| }); | |
| // Register the current SW at the root | |
| window.addEventListener('load', async () => { | |
| try { | |
| const reg = await navigator.serviceWorker.register('/sw.js', { scope: '/' }); | |
| // Enable navigation preload (faster navigations) | |
| if ('navigationPreload' in reg) { | |
| try { await reg.navigationPreload.enable(); } catch {} | |
| } | |
| console.log('SW registered:', reg); | |
| } catch (err) { | |
| console.log('SW registration failed:', err); | |
| } | |
| }); | |
| } | |
| </script> | |
| <script type="module" crossorigin src="/assets/index-oPRJTRcN.js"></script> | |
| <link rel="stylesheet" crossorigin href="/assets/index-DkIjYZRi.css"> | |
| </head> | |
| <body> | |
| <div id="root"></div> | |
| </body> | |
| </html> | |