feat: add share target to PWA
This commit is contained in:
7 files changed
+91
-8
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import { photonify } from '$lib/app/markdown/renderers/plugins'
|
||||
import { redirect } from '@sveltejs/kit'
|
||||
|
||||
export async function load({ url }) {
|
||||
const link = url.searchParams.get('localize')
|
||||
|
||||
if (link) {
|
||||
const localized = photonify(link)
|
||||
if (localized) redirect(302, localized)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user