Cache-bust JS/CSS v16 + QR debug logging

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-27 15:19:08 +02:00
parent 18ca4a8d5f
commit e81daa7305
2 changed files with 9 additions and 5 deletions

View File

@@ -7,7 +7,7 @@
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta name="google" content="notranslate"> <meta name="google" content="notranslate">
<meta http-equiv="Content-Language" content="fr"> <meta http-equiv="Content-Language" content="fr">
<link rel="stylesheet" href="/css/style.css?v=10"> <link rel="stylesheet" href="/css/style.css?v=11">
<link rel="stylesheet" href="/css/themes.css?v=2"> <link rel="stylesheet" href="/css/themes.css?v=2">
</head> </head>
<body> <body>
@@ -916,7 +916,7 @@
</style> </style>
<script src="/js/websocket.js?v=16"></script> <script src="/js/websocket.js?v=16"></script>
<script src="/js/app.js?v=15"></script> <script src="/js/app.js?v=16"></script>
<script src="/js/camera.js?v=15"></script> <script src="/js/camera.js?v=15"></script>
<script src="/js/effects.js?v=4"></script> <script src="/js/effects.js?v=4"></script>
<script src="/js/gallery.js?v=3"></script> <script src="/js/gallery.js?v=3"></script>

View File

@@ -374,15 +374,19 @@ async function chargerBoothInfo() {
async function afficherQR() { async function afficherQR() {
const booth = config.booth || {}; const booth = config.booth || {};
if (!booth.actif || !booth.url || !photoFinale) return; if (!booth.actif || !booth.url || !photoFinale) {
console.warn('afficherQR skip:', {actif: booth.actif, url: booth.url, photoFinale});
return;
}
try { try {
const info = await apiGet('/api/booth/info'); const info = await apiGet('/api/booth/info');
if (!info.password) return; if (!info.password) { console.warn('afficherQR: no password'); return; }
const eventId = (config.evenement || {}).event_id || booth.event_id || 'default'; const eventId = (config.evenement || {}).event_id || booth.event_id || 'default';
const qrUrl = `${booth.url}/g/${eventId}/view/${photoFinale}?p=${info.password}`; const qrUrl = `${booth.url}/g/${eventId}/view/${photoFinale}?p=${info.password}`;
console.log('QR URL:', qrUrl);
document.getElementById('qr-photo').src = `/api/qr?url=${encodeURIComponent(qrUrl)}`; document.getElementById('qr-photo').src = `/api/qr?url=${encodeURIComponent(qrUrl)}`;
document.getElementById('popup-qr').classList.remove('cache'); document.getElementById('popup-qr').classList.remove('cache');
} catch (e) {} } catch (e) { console.error('afficherQR error:', e); }
} }
function fermerQR() { function fermerQR() {