使得--cover-url正确的被移除

This commit is contained in:
失心 2023-02-09 09:55:16 +08:00
parent 74cf834296
commit 267b7248b6

View File

@ -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')