Féry Mathieu (Mathius) 2022-02-17 22:22:04 +01:00
parent 7048193f00
commit 1e3f4ed398
No known key found for this signature in database
GPG Key ID: F9CCC80C18A59037

View File

@ -185,9 +185,7 @@ player.playbackRate(video_data.params.speed);
* @returns cookieValue * @returns cookieValue
*/ */
function getCookieValue(name) { function getCookieValue(name) {
var value = document.cookie.split(";").filter(item => { var value = document.cookie.split(";").filter(item => item.includes(name + "="));
return item.includes(name + "=");
});
return value != null && value.length >= 1 ? value[0].substring((name + "=").length, value[0].length) : null; return value != null && value.length >= 1 ? value[0].substring((name + "=").length, value[0].length) : null;
} }