Skip to content

Commit

Permalink
feat: add contribution page
Browse files Browse the repository at this point in the history
  • Loading branch information
theusaf committed Apr 26, 2024
1 parent 365f6ec commit 2655dc1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions websites/M/Minecraft Wiki/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ presence.on("UpdateData", async () => {
// Upload a file (Special:Upload)
else if (document.querySelector<HTMLFormElement>("#mw-upload-form")) {

Check failure on line 120 in websites/M/Minecraft Wiki/presence.ts

View workflow job for this annotation

GitHub Actions / Compile and Lint

Unnecessary { after 'if' condition
presenceData.details = strings.upload;
}

Check failure on line 122 in websites/M/Minecraft Wiki/presence.ts

View workflow job for this annotation

GitHub Actions / Compile and Lint

Closing curly brace does not appear on the same line as the subsequent block
// Contributions (Special:Contributions)
else if (
document.querySelector<HTMLDivElement>(".mw-contributions-user-tools")
) {
presenceData.details = strings.viewContributionsOf;
presenceData.state = pageTitle.split("/").slice(1).join("/");
} else {
presenceData.details = strings.viewAPage;
presenceData.state = pageTitle;
Expand Down

0 comments on commit 2655dc1

Please sign in to comment.