misc: fix modal size

This commit is contained in:
Xyphyn committed 2023-07-26 17:11:48 -07:00
1 parent e535eaa062
commit f835e31fb9
3 files changed
+10 -3

No files matched your search

+3 -1
View File
@@ -1,5 +1,7 @@
<script lang="ts">
import { md } from '$lib/components/markdown/markdown'
import { page } from '$app/stores'
export let source: string = ''
md.linkify.add('!', {
@@ -22,7 +24,7 @@
return 0
},
normalize: function (match) {
match.url = `${location.origin}/c/${match.url.slice(1)}`
match.url = `${$page.url.origin}/c/${match.url.slice(1)}`
},
})
</script>