From 08a94aa70546a60f85633fce473cd13fc950b4b8 Mon Sep 17 00:00:00 2001 From: the1812 Date: Thu, 17 Mar 2022 19:41:06 +0800 Subject: [PATCH] Fix bwp video detection (fix #3131) --- src/core/utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/utils/index.ts b/src/core/utils/index.ts index 834c328d8..2ebadb58e 100644 --- a/src/core/utils/index.ts +++ b/src/core/utils/index.ts @@ -73,7 +73,7 @@ export const isBwpVideo = async () => { return false } // eslint-disable-next-line no-underscore-dangle - return unsafeWindow.__ENABLE_WASM_PLAYER__ as boolean || Boolean(dq('bwp-video')) + return unsafeWindow.__ENABLE_WASM_PLAYER__ as boolean || Boolean(dq('#bilibili-player bwp-video')) } /** * 等待一定时间