mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 19:51: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
@@ -5262,8 +5262,9 @@ function webFullscreen(art) {
|
||||
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 (!active2())
|
||||
return;
|
||||
art.state = "fullscreenWeb";
|
||||
|
||||
Reference in new issue
Block a user