Remove TV search page from non tv clients

This commit is contained in:
WardPearce
2026-01-16 23:30:55 +13:00
parent a8977734d8
commit 07fb54ea39
2 changed files with 7 additions and 5 deletions
@@ -4,7 +4,7 @@
let ghContributors: { login: string; avatar_url: string; type: 'Bot' | 'User' }[] = $state([]);
onMount(() => {
fetch(`${document.location.origin}/localApi/ghContributors.json`, {
fetch('/localApi/ghContributors.json', {
priority: 'low'
}).then(async (resp) => {
if (!resp.ok) {
+6 -4
View File
@@ -253,10 +253,12 @@
>
<Logo />
</header>
<a href={resolve('/search', {})} class:active={$page.url.href.endsWith('/search')}>
<i>search</i>
<div>{$_('searchPlaceholder')}</div>
</a>
{#if $isAndroidTvStore}
<a href={resolve('/search', {})} class:active={$page.url.href.endsWith('/search')}>
<i>search</i>
<div>{$_('searchPlaceholder')}</div>
</a>
{/if}
{#each getPages() as navPage (navPage)}
{#if !navPage.requiresAuth || isLoggedIn}
<a href={resolve(navPage.href, {})} class:active={$page.url.href.endsWith(navPage.href)}