Fix safe login submission, mobile fullscreen, and OIDC discovery
This commit is contained in:
@ -756,25 +756,7 @@ class WatchPage {
|
||||
}
|
||||
|
||||
toggleFullscreen() {
|
||||
const container = document.querySelector('.watch-video-section');
|
||||
const isFullscreen = document.fullscreenElement || document.webkitFullscreenElement;
|
||||
|
||||
if (isFullscreen) {
|
||||
if (document.exitFullscreen) {
|
||||
document.exitFullscreen();
|
||||
} else if (document.webkitExitFullscreen) {
|
||||
document.webkitExitFullscreen();
|
||||
}
|
||||
} else {
|
||||
if (container?.requestFullscreen) {
|
||||
container.requestFullscreen();
|
||||
} else if (container?.webkitRequestFullscreen) {
|
||||
container.webkitRequestFullscreen();
|
||||
} else if (this.video?.webkitEnterFullscreen) {
|
||||
// iOS Safari: use native video fullscreen
|
||||
this.video.webkitEnterFullscreen();
|
||||
}
|
||||
}
|
||||
return PlayerFullscreen.toggle(this.video, document.querySelector('.watch-video-section'), document);
|
||||
}
|
||||
|
||||
async togglePictureInPicture() {
|
||||
|
||||
Reference in New Issue
Block a user