fix: broken error messages

This commit is contained in:
Xyphyn committed 2023-10-11 17:18:43 -07:00
1 parent 5372820340
commit b12d1271ec
1 file changed
-7
-7
View File
@@ -10,13 +10,6 @@ function buildUrl(inputUrl: URL): URL {
return new URL(`${withoutCors}?${inputUrl.searchParams.toString()}`)
}
export function handleError({ error, event }) {
console.error(error)
return {
message: 'There was an error during rendering',
}
}
export async function handle({ event, resolve }) {
// annoying hack to fix lemmy's CORS
if (event.url.pathname.startsWith('/cors')) {