* impr: use one resize observer that observes all elements 1984 style instead of 1 agent per element * design: tweak VirtualFeed.svelte to have a more modern retry window
13 lines
324 B
TypeScript
13 lines
324 B
TypeScript
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)
|
|
else redirect(302, link)
|
|
}
|
|
}
|