Skip to content

Commit

Permalink
Merge pull request #1544 from SnowCait/show-picture-events
Browse files Browse the repository at this point in the history
Show picture events
  • Loading branch information
SnowCait authored Nov 30, 2024
2 parents d49c912 + eb53be2 commit 27ab0f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions web/src/hooks.client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { newUrl } from '$lib/Helper';

if (!URL.canParse) {
URL.canParse = (url: string) => newUrl(url) !== undefined;
}
2 changes: 1 addition & 1 deletion web/src/lib/components/content/Imeta.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
export let tag: string[];
$: url = tag.at(1)?.split(' ').at(1) ?? '';
$: url = tag.find((entry) => entry.startsWith('url '))?.substring('url '.length) ?? '';
</script>

{#if URL.canParse(url)}
Expand Down

0 comments on commit 27ab0f3

Please sign in to comment.