091eead5bb
index.html référençait /manifest.json (inexistant) → nginx renvoyait index.html en fallback SPA → "Manifest: Line 1, column 1, Syntax error" dans Chromium, et la PWA n'avait aucune icône valide (d'où les favicons icon-192/512 non utilisées pour le raccourci). - Retire le <link rel="manifest" href="/manifest.json"> codé en dur : VitePWA injecte déjà /manifest.webmanifest au build - Ajoute <link rel="apple-touch-icon" href="/icons/icon-192.png"> pour le raccourci écran d'accueil iOS (qui n'utilise pas le manifest pour l'icône) v0.5.17 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 lines
1.3 KiB
HTML
30 lines
1.3 KiB
HTML
<!doctype html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
<meta name="theme-color" content="#fe8019" />
|
|
<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=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Share+Tech+Mono&display=swap" rel="stylesheet" />
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" />
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
<link rel="apple-touch-icon" href="/icons/icon-192.png" />
|
|
<title>HomeHub</title>
|
|
<!-- Anti-flash : applique thème et zoom avant le premier rendu -->
|
|
<script>
|
|
(function(){
|
|
var t=localStorage.getItem('theme')||'system';
|
|
var r=t==='system'?(matchMedia('(prefers-color-scheme:dark)').matches?'dark':'light'):t;
|
|
document.documentElement.setAttribute('data-theme',r);
|
|
var z=localStorage.getItem('fontScale');
|
|
if(z)document.documentElement.style.zoom=z;
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|