From 267b7248b665c375a7a45a37453491aaea2874dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=B1=E5=BF=83?= Date: Thu, 9 Feb 2023 09:55:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E5=BE=97--cover-url=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E7=9A=84=E8=A2=AB=E7=A7=BB=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- registry/lib/components/video/player/show-cover/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/lib/components/video/player/show-cover/index.ts b/registry/lib/components/video/player/show-cover/index.ts index 983adc45c..ed77675d2 100644 --- a/registry/lib/components/video/player/show-cover/index.ts +++ b/registry/lib/components/video/player/show-cover/index.ts @@ -5,7 +5,7 @@ import { playerUrls } from '@/core/utils/urls' const entry = async () => { let lastAid: string - const removeCover = () => document.body.style.removeProperty('--cover-url') + const removeCover = () => document.documentElement.style.removeProperty('--cover-url') const videoPrototype = (await isBwpVideo()) ? BwpElement.prototype : HTMLVideoElement.prototype // bpx player 改了 video.play(), hook 直接挂 HTMLVideoElement.prototype 上没效果 (#3698) const bpxPlayer = dq('.bpx-player-video-wrap')