hack: patch bad deband code

This commit is contained in:
ThaUnknown 2025-04-29 00:11:52 +02:00
parent db9020fde2
commit 6a5937bd8c
No known key found for this signature in database

View file

@ -60,7 +60,7 @@
// elements
let fullscreenElement: HTMLElement | null = null
let pictureInPictureElement: HTMLVideoElement | null = null
let pictureInPictureElement: Promise<void> | undefined
let video: HTMLVideoElement
let wrapper: HTMLDivElement
@ -86,8 +86,11 @@
}
async function pip () {
!pictureInPictureElement ? await burnIn(video, subtitles, deband) : await document.exitPictureInPicture()
pictureInPictureElement = document.pictureInPictureElement as HTMLVideoElement
// TODO: this is shit code
pictureInPictureElement = (async () => {
await pictureInPictureElement
document.pictureInPictureElement ? await document.exitPictureInPicture() : await burnIn(video, subtitles, deband)
})()
}
function toggleCast () {