mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-20 15:02:12 +00:00
hack: patch bad deband code
This commit is contained in:
parent
db9020fde2
commit
6a5937bd8c
1 changed files with 6 additions and 3 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Reference in a new issue