fix: retry automatique QR + multi-langue + thème jour/nuit
This commit is contained in:
parent
91e0553189
commit
d8cd7b509d
1 changed files with 8 additions and 0 deletions
|
|
@ -740,6 +740,14 @@
|
|||
|
||||
// ═══ DÉMARRAGE ═══
|
||||
init();
|
||||
// Retry QR si non généré après 2s (fallback timing)
|
||||
setTimeout(() => {
|
||||
const img = document.getElementById('qrImage');
|
||||
if (img && (!img.src || img.src === window.location.href || img.src.length < 100)) {
|
||||
console.log('[QR] Retry auto...');
|
||||
generateQR();
|
||||
}
|
||||
}, 2000);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue