fix: invalid page in threads

This commit is contained in:
kawamataryo 2024-12-06 21:15:03 +09:00
parent 9c8fa611aa
commit 4cbc574e79

View File

@ -24,9 +24,9 @@ export class ThreadsService extends AbstractService {
}
isTargetPage(): [boolean, string] {
const isTargetPage =
document.querySelector('[role="dialog"] [aria-label="Followers"]') ||
document.querySelector('[role="dialog"] [aria-label="Following"]');
const isTargetPage = document.querySelector(
'[role="dialog"] [role="tab"]>[role="button"]',
);
if (!isTargetPage) {
return [
false,