This commit is contained in:
Chris W 2023-10-06 20:36:17 -06:00
parent 461fed9c60
commit 6360f78774
6 changed files with 7 additions and 10 deletions

View File

@ -2,7 +2,7 @@
<html lang="en" class="w-full h-full py-[20px] px-[50px] dark">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<link rel="icon" href="%sveltekit.assets%/images/favicon.ico" />
<meta name="viewport" content="width=device-width" />
%sveltekit.head%
</head>

View File

@ -11,10 +11,10 @@ interface ServerError extends Error {
}
export const handleError: HandleServerError = ({ error, event }) => {
Sentry.captureException(error, { extra: { event } });
Sentry.captureException(error, { extra: { event } });
return {
message: 'Uh oh! An unexpected error occurred.',
code: (error as ServerError)?.code ?? '500',
};
return {
message: 'Uh oh! An unexpected error occurred.',
code: (error as ServerError)?.code ?? '500',
};
};

View File

@ -27,6 +27,7 @@
type: 'component',
component: modalComponent,
response: (data: typeof extraOptions) => {
if (!data) return;
extraOptions = data;
onSave();
},

View File

@ -3,8 +3,6 @@
import { page } from '$app/stores';
import ToolBox from '$lib/components/ToolBox.svelte';
import { ChevronRight } from 'svelte-tabler';
console.log($page);
</script>
<svelte:head>

View File

@ -7,8 +7,6 @@ export const POST: RequestHandler = async ({ params, request }) => {
const { id } = params;
const { password } = await request.json();
console.log(password);
const paste = await pastes.findOne({ id });
if (!paste) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB