mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
parent
fe8348b1f4
commit
c1a0924ac3
1 changed files with 3 additions and 5 deletions
|
@ -1358,8 +1358,8 @@ function _avideoToast(msg, icon, displayTime = 0) {
|
||||||
displayTime = Math.max(readingTimeInSeconds * 1000 + 2000, 7000); // Minimum display time of 7000ms
|
displayTime = Math.max(readingTimeInSeconds * 1000 + 2000, 7000); // Minimum display time of 7000ms
|
||||||
|
|
||||||
}
|
}
|
||||||
var options = { text: msg, hideAfter: displayTime};
|
var options = { text: msg, hideAfter: displayTime };
|
||||||
if(toastPosition && toastPosition !== 'undefined') {
|
if (toastPosition && toastPosition !== 'undefined') {
|
||||||
options.position = toastPosition;
|
options.position = toastPosition;
|
||||||
}
|
}
|
||||||
if (icon) {
|
if (icon) {
|
||||||
|
@ -1523,9 +1523,7 @@ window.addEventListener('message', function (event) {
|
||||||
player.muted(false);
|
player.muted(false);
|
||||||
break;
|
break;
|
||||||
case 'closeFullscreen':
|
case 'closeFullscreen':
|
||||||
if (document.fullscreenElement) {
|
closeFullscreenVideo();
|
||||||
document.exitFullscreen();
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
console.log('Unknown command:', event.data);
|
console.log('Unknown command:', event.data);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue