diff --git a/src/inject/inject.ts b/src/inject/inject.ts index 4dee7db..6817496 100644 --- a/src/inject/inject.ts +++ b/src/inject/inject.ts @@ -7,6 +7,12 @@ const debug = (...args: any[]) => { } (function () { + // 如果路径不是/video或/list,则不注入 + if (!location.pathname.startsWith('/video') && !location.pathname.startsWith('/list')) { + debug('Not inject') + return + } + const runtime: { postMessageToApp?: (method: string, payload: PostMessagePayload) => Promise // lastV?: string | null