fix webfetcher iframe detect

This commit is contained in:
2025-03-18 21:00:06 +08:00
parent e2ff1616b8
commit e00447497b

View File

@@ -20,7 +20,7 @@ function onGetDanmaku(data: any) {
let timer: any let timer: any
onMounted(async () => { onMounted(async () => {
if (window.parent) { //当是客户端组件时不自动启动, 需要客户端来启动以获取启动响应 if (window.frameElement) { //当是客户端组件时不自动启动, 需要客户端来启动以获取启动响应
console.log('[web-fetcher-iframe] 当前为客户端组件') console.log('[web-fetcher-iframe] 当前为客户端组件')
rpc = new RPC({ rpc = new RPC({