1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Daniel Neto 2025-07-02 17:22:23 -03:00
parent fe8348b1f4
commit c1a0924ac3

View file

@ -1358,8 +1358,8 @@ function _avideoToast(msg, icon, displayTime = 0) {
displayTime = Math.max(readingTimeInSeconds * 1000 + 2000, 7000); // Minimum display time of 7000ms
}
var options = { text: msg, hideAfter: displayTime};
if(toastPosition && toastPosition !== 'undefined') {
var options = { text: msg, hideAfter: displayTime };
if (toastPosition && toastPosition !== 'undefined') {
options.position = toastPosition;
}
if (icon) {
@ -1523,9 +1523,7 @@ window.addEventListener('message', function (event) {
player.muted(false);
break;
case 'closeFullscreen':
if (document.fullscreenElement) {
document.exitFullscreen();
}
closeFullscreenVideo();
break;
default:
console.log('Unknown command:', event.data);