From d26ee3515acd6827def7072f07e6b27ffdc0ca26 Mon Sep 17 00:00:00 2001 From: Breizh Date: Wed, 23 Nov 2022 14:26:10 +0100 Subject: [PATCH] Correction du lecteur --- assets/player.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/player.js b/assets/player.js index 56c49b7..4fcc4d4 100644 --- a/assets/player.js +++ b/assets/player.js @@ -1,3 +1,5 @@ + + // ==UserScript== // @name Breizh autoplay // @version 1 @@ -45,7 +47,7 @@ function ap_next(event) { let medias = Array.from(document.querySelectorAll("audio")); // If there is at least one media -if(media.length > 0) { +if(medias.length > 0) { // Create the menu var ap_menu = document.createElement("div"); ap_menu.id = "ap-menu";