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";