misc: fix modal size
This commit is contained in:
1 parent
e535eaa062
commit
f835e31fb9
3 files changed
+10
-3
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user