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 51ba1fd commit 7e6e190
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/routes/new/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@
let content: PostObject | null = null;
async function fetchPostData() {
await authGuard();
const url = new URL(window.location.href); // Get the URL on client-side
const edit_url: string | null = url.searchParams.get('edit');
Expand All @@ -119,6 +117,7 @@
}
onMount(async () => {
await authGuard();
await fetchPostData();
textarea = document.querySelector('textarea');
Expand Down Expand Up @@ -183,4 +182,4 @@
}
}
}
</style>
</style>

0 comments on commit 7e6e190

Please sign in to comment.