1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 17:59:55 +02:00
This commit is contained in:
DanielnetoDotCom 2020-10-01 15:13:49 -03:00
parent 53e36f4865
commit efeadbcdff

View file

@ -737,7 +737,7 @@ function setCurrentTime(currentTime) {
function isAutoplayEnabled(){
if ((typeof isEmbed === 'undefined' || !isEmbed) && typeof Cookies.get('autoplay') !== 'undefined' && Cookies.get('autoplay')) {
if(Cookies.get('autoplay') !== 'false'){
if(Cookies.get('autoplay') === 'true' || Cookies.get('autoplay') == true){
return true;
}else{
return false;