Skip to content

Commit

Permalink
feat(Masuru): add presence (formated)
Browse files Browse the repository at this point in the history
  • Loading branch information
aomkoyo committed May 2, 2024
1 parent 27b8d48 commit fdbce3a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion websites/A/Animeflix/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
"animeflix",
"netflix"
]
}
}
2 changes: 1 addition & 1 deletion websites/M/Masuru/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://schemas.premid.app/metadata/1.9",
"$schema": "https://schemas.premid.app/metadata/1.10",
"author": {
"id": "527383789475856426",
"name": "aomkoyo"
Expand Down
6 changes: 4 additions & 2 deletions websites/M/Masuru/presence.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable unicorn/prefer-query-selector */
/* eslint-disable camelcase */
/* eslint-disable no-one-time-vars/no-one-time-vars */

/* eslint-disable @typescript-eslint/no-unused-vars */
const presence = new Presence({
clientId: "861582205028794418",
Expand Down Expand Up @@ -56,7 +56,9 @@ presence.on("UpdateData", async () => {
presenceData.details = `Dashboard - ${title}`;
presenceData.state = pathname_.split("/").reverse()[0];
if (presenceData.state === "discovery") {
const link_code = document.getElementById("link_code") as HTMLInputElement;
const link_code = document.getElementById(
"link_code"
) as HTMLInputElement;
presenceData.buttons = [
{
label: "Discovery Page",
Expand Down

0 comments on commit fdbce3a

Please sign in to comment.