Skip to content

Commit

Permalink
Fix boolean formatting for xo
Browse files Browse the repository at this point in the history
  • Loading branch information
mquevill committed Nov 29, 2024
1 parent 47418b1 commit cd41121
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,11 +614,12 @@ In other words, you should only use this function within a callback that is prov
*/
function isSelectedConversationGroup(): boolean {
// Individual conversations include an entry for "View Profile", which is type `a`
return !Boolean(document.querySelector<HTMLElement>(`${selectors.conversationMenuSelectorNewDesign} a[role=menuitem]`));
return !document.querySelector<HTMLElement>(`${selectors.conversationMenuSelectorNewDesign} a[role=menuitem]`);
}

function isSelectedConversationMetaAI(): boolean {
// Meta AI menu only has 1 separator of type `hr`
return !Boolean(document.querySelector<HTMLElement>(`${selectors.conversationMenuSelectorNewDesign} hr:nth-of-type(2)`));
return !document.querySelector<HTMLElement>(`${selectors.conversationMenuSelectorNewDesign} hr:nth-of-type(2)`);
}

async function archiveSelectedConversation(): Promise<void> {
Expand Down

0 comments on commit cd41121

Please sign in to comment.