Skip to content

Commit

Permalink
fix typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus-Rost authored Apr 28, 2024
1 parent 4ebdfbb commit dbdf081
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions websites/M/Minecraft Wiki/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const presence = new Presence({
clientId: "1232903356025143297",
}),
browsingTimestamp = Math.floor(Date.now() / 1000);
var veactionLast: string? = null;
var veactionLast: string | null = null;

function hasPermissions(): boolean {
return !document.querySelector(".permissions-errors");
Expand Down Expand Up @@ -43,8 +43,8 @@ async function prepare(): Promise<PresenceData> {
wgTitle: string;
wgCanonicalSpecialPageName: string | false;
wgRelevantPageName: string;
wgRelevantUserName: string?;
wgIsMainPage: boolean?;
wgRelevantUserName: string | null;
wgIsMainPage: boolean | null;
}>('mw"]["config"]["values'),
mainPath = pathname.split("/").filter(Boolean)[1] ?? "/",
pageTitle = mwConfig.wgPageName.replace(/_/g, "");
Expand Down

0 comments on commit dbdf081

Please sign in to comment.