Skip to content

Commit

Permalink
fix(Studio.Design): prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Milkeyyy committed Dec 28, 2024
1 parent 525f3af commit f8df2f5
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions websites/S/Studio.Design/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ presence.on("UpdateData", async () => {
largeImageKey: "https://i.imgur.com/zjBdwQ8.png",
startTimestamp: browsingTimestamp,
},
privacy = await(presence.getSetting<boolean>("privacy")),
privacy = await presence.getSetting<boolean>("privacy"),
{ pathname } = document.location;

switch (pathname) {
Expand All @@ -25,10 +25,13 @@ presence.on("UpdateData", async () => {
default:
// Project Dashboard
if (pathname.includes("/projects/") && pathname.includes("/dashboard/")) {
// Project Name
presenceData.details = privacy
? "Project dashboard"
: `${document?.title?.replace(/ \| Studio(\.Design)?$/, "")} | Dashboard`; // Global: Studio.Design / Japanese: Studio
// Project Name
presenceData.details = privacy
? "Project dashboard"
: `${document?.title?.replace(
/ \| Studio(\.Design)?$/, // Global: Studio.Design / Japanese: Studio
""
)} | Dashboard`;
// Home
if (pathname.includes("/home")) {
// Project Settings
Expand Down

0 comments on commit f8df2f5

Please sign in to comment.