fix: broken error messages
This commit is contained in:
1 parent
5372820340
commit
b12d1271ec
1 file changed
-7
@@ -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')) {
|
||||
|
||||
Reference in new issue
Block a user