clean up
This commit is contained in:
parent
461fed9c60
commit
6360f78774
|
@ -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>
|
||||
|
|
|
@ -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',
|
||||
};
|
||||
};
|
|
@ -27,6 +27,7 @@
|
|||
type: 'component',
|
||||
component: modalComponent,
|
||||
response: (data: typeof extraOptions) => {
|
||||
if (!data) return;
|
||||
extraOptions = data;
|
||||
onSave();
|
||||
},
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 |
Loading…
Reference in New Issue