Skip to content

Commit

Permalink
feature[www-kudos-community]: remove unneeded redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
mankins committed Aug 27, 2023
1 parent 5d0399a commit caa1a01
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions kudos-community/www/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,10 @@
import '$lib/styles/twemoji.scss';
import Toasts from '$lib/components/Toasts.svelte';
import { onMount } from 'svelte';
// see if the query params contained a favicon
let faviconItem;
let favicon = '/favicon';
onMount(() => {
faviconItem = new URLSearchParams(window.location.search).get('favicon');
// add leading zeros
favicon = faviconItem
? `/favicon?favicon=${encodeURIComponent(faviconItem.padStart(1, '0'))}`
: '/favicon';
});
</script>

<svelte:head>
<link rel="icon" href={favicon} />
<link rel="icon" href="/favicons/favicon-35.png" />
<script
src="https://cdn.usefathom.com/script.js"
data-spa="auto"
Expand Down

0 comments on commit caa1a01

Please sign in to comment.