From e3e4b3ccdd208b7178f24e5459e4ff22cf59e1ab Mon Sep 17 00:00:00 2001 From: Maxime Cannoodt Date: Sun, 3 Jul 2022 15:15:23 +0200 Subject: [PATCH] remove comment --- webapp/src/routes/note/[id].svelte | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/webapp/src/routes/note/[id].svelte b/webapp/src/routes/note/[id].svelte index b998f22..dc29b7f 100644 --- a/webapp/src/routes/note/[id].svelte +++ b/webapp/src/routes/note/[id].svelte @@ -12,33 +12,6 @@ }, props: { note } }; - - // if (response.ok) { - // try { - // const note: EncryptedNote = await response.json(); - // note.insert_time = new Date(note.insert_time as unknown as string); - // note.expire_time = new Date(note.expire_time as unknown as string); - // const maxage = Math.floor((note.expire_time.valueOf() - note.insert_time.valueOf()) / 1000); - // return { - // status: response.status, - // cache: { - // maxage: maxage, - // private: false - // }, - // props: { note } - // }; - // } catch { - // return { - // status: 500, - // error: response.statusText - // }; - // } - // } else { - // return { - // status: response.status, - // error: response.statusText - // }; - // } };