Allow to config the external client

This commit is contained in:
dtonon 2026-09-24 16:24:29 +02:00
parent 58e81d1dba
commit 5f8bf2fe7e
6 changed files with 28 additions and 8 deletions

View file

@ -1,6 +1,6 @@
<script lang="ts">
import { page } from "$app/state";
import { MODE } from "$lib/config";
import { MODE, EXTERNAL_CLIENT_NAME, externalLink } from "$lib/config";
import { getGroupName } from "$lib/group.svelte";
import { groupsStore } from "$lib/groups.svelte";
import {
@ -235,12 +235,12 @@
</span>
{/if}
<a
href="https://njump.me/{npub}"
href={externalLink(npub)}
target="_blank"
rel="noopener noreferrer"
class="text-accent text-sm hover:underline"
>
View on njump ↗
View on {EXTERNAL_CLIENT_NAME} ↗
</a>
</div>