Skip to content

Commit

Permalink
Update +page.svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
kwangjong authored Aug 8, 2024
1 parent 666f2fc commit da975d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/routes/new/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@
}
onMount(async () => {
await authGuard();
if (!(await isAuthed())) {
window.location.href = '/admin';
}
await fetchPostData();
textarea = document.querySelector('textarea');
Expand Down

0 comments on commit da975d1

Please sign in to comment.