mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-20 00:52:05 +00:00
fix: #302 PiP mode pause not working
This commit is contained in:
parent
281c5c7c7b
commit
f40e164085
2 changed files with 7 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Miru",
|
||||
"version": "4.2.8",
|
||||
"version": "4.2.9",
|
||||
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
||||
"description": "Stream anime torrents, real-time with no waiting for downloads.",
|
||||
"main": "build/main.js",
|
||||
|
|
|
|||
|
|
@ -338,6 +338,12 @@
|
|||
})
|
||||
}
|
||||
}
|
||||
function updatePiPState (paused) {
|
||||
if (!document.pictureInPictureElement || document.pictureInPictureElement.id) return
|
||||
if (paused) document.pictureInPictureElement.pause()
|
||||
else document.pictureInPictureElement.play()
|
||||
}
|
||||
$: updatePiPState(paused)
|
||||
function togglePopout () {
|
||||
if (video.readyState) {
|
||||
if (!subs?.renderer) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue