Skip to content

Commit

Permalink
Updated file after lint
Browse files Browse the repository at this point in the history
Signed-off-by: Micotsu <[email protected]>
  • Loading branch information
Micotsu authored Apr 29, 2024
1 parent 9eb88f2 commit 73cde34
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions websites/A/Animeflix/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ presence.on("UpdateData", async () => {
}
default:
if (pathname.includes("/watch")) {
const epData = JSON.parse(document.querySelector<HTMLMetaElement>('script[id="syncData"]').textContent);
presenceData.details = `Watching ${epData.name.replace(/\b[a-z]/g, (letter: string) => letter.toUpperCase())}`;
presenceData.state = `Watch for free on Animeflix!`;
presenceData.details = `Watching ${JSON.parse(
document.querySelector<HTMLMetaElement>('script[id="syncData"]')
.textContent
).name.replace(/\b[a-z]/g, (letter: string) => letter.toUpperCase())}`;
presenceData.state = "Watch for free on Animeflix!";
} else presenceData.details = "Exploring Animeflix";
}
presence.setActivity(presenceData);
Expand Down

0 comments on commit 73cde34

Please sign in to comment.