Hotfix: Modal wasn't working on mobile + Watch button was shown even without M3U.
This commit is contained in:
+2
-2
@@ -13,9 +13,9 @@ function openProgramModal(ch, p) {
|
||||
document.getElementById('pm-desc').textContent = p.desc || '';
|
||||
document.getElementById('pm-desc').style.display = p.desc ? 'block' : 'none';
|
||||
|
||||
// Bouton Watch now — seulement si live
|
||||
// Bouton Watch now — seulement si live ET M3U fourni pour la source active
|
||||
const watchBtn = document.getElementById('pm-watch');
|
||||
if (isLive) {
|
||||
if (isLive && currentM3uUrl) {
|
||||
watchBtn.style.display = 'inline-flex';
|
||||
watchBtn.onclick = () => { closeProgramModal(); openPip(ch.name, p.title); };
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user