Correction du lecteur

This commit is contained in:
Breizh 2022-11-23 14:26:10 +01:00
parent 0d8287119b
commit d26ee3515a

View file

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