Skip to content

Commit

Permalink
fix: fix discord link
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonpole committed Oct 21, 2024
1 parent 2eab1ce commit a8cbba5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,6 @@ function Index() {
* @function
*/
(() => {
// handle discord redirect if discord's
// subdomain is detected
const [subdomain] = window.location.hostname.split(".");

if (subdomain && subdomain === "discord") {
window.location.href = `https://discord.gg/${import.meta.env.VITE_DISCORD_INVITE_CODE}`;
return;
}

// grab the root container
const container = document.getElementById("root");

Expand Down
2 changes: 1 addition & 1 deletion src/partials/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const navItems: Array<{ title: string; url: string }> = [
{ title: "Features", url: "/#features" },
{ title: "Release Notes", url: "/#changelog" },
{ title: "Blog", url: "/blog" },
{ title: "Discord Server", url: "https://discord.playliga.gg" },
{ title: "Discord Server", url: `https://discord.gg/${import.meta.env.VITE_DISCORD_INVITE_CODE}` },
];

/** @function */
Expand Down

0 comments on commit a8cbba5

Please sign in to comment.