diff --git a/frontend/index.html b/frontend/index.html index 0e7533a..e65c4d4 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -7,7 +7,7 @@ - +
@@ -916,7 +916,7 @@ - + diff --git a/frontend/js/app.js b/frontend/js/app.js index b50a6ac..e2cc6be 100644 --- a/frontend/js/app.js +++ b/frontend/js/app.js @@ -374,15 +374,19 @@ async function chargerBoothInfo() { async function afficherQR() { 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 { 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 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('popup-qr').classList.remove('cache'); - } catch (e) {} + } catch (e) { console.error('afficherQR error:', e); } } function fermerQR() {