fix(main): fix site not building
This commit is contained in:
parent
fdad7710bd
commit
5cfc8adbff
1 changed files with 5 additions and 1 deletions
|
@ -1,10 +1,14 @@
|
||||||
<script>
|
<script>
|
||||||
import Discord from "@inqling/svelte-icons/simple-icons/discord.svelte"
|
import Discord from "@inqling/svelte-icons/simple-icons/discord.svelte"
|
||||||
|
|
||||||
|
import { browser } from "$app/environment"
|
||||||
|
|
||||||
import { discordInviteLink } from "../../constants"
|
import { discordInviteLink } from "../../constants"
|
||||||
|
|
||||||
// redirect to developomp's discord server
|
// redirect to developomp's discord server
|
||||||
|
if (browser) {
|
||||||
window.location.replace(discordInviteLink)
|
window.location.replace(discordInviteLink)
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue