mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 21:31:20 -08:00
fix(core): [PKG-DPIP-05] keep web fullscreen in the active document
This commit is contained in:
1 parent
401c5e9684
commit
7e37fd4d0e
19 files changed
+1408
-15
No files matched your search
@@ -62,8 +62,9 @@ export function webFullscreen(art: WebFullscreenHost): (value: boolean) => void
|
||||
saved = { placement: capturePlacement($player), style: $player.getAttribute('style') }
|
||||
const snapshot = saved
|
||||
try {
|
||||
if (art.constructor.FULLSCREEN_WEB_IN_BODY && $player.parentNode !== document.body)
|
||||
document.body.appendChild($player)
|
||||
const body = $player.ownerDocument.body
|
||||
if (art.constructor.FULLSCREEN_WEB_IN_BODY && $player.parentNode !== body)
|
||||
body.appendChild($player)
|
||||
if (!active())
|
||||
return
|
||||
art.state = 'fullscreenWeb'
|
||||
|
||||
Reference in new issue
Block a user