fix: Auto-refresh page on profile photo update

This commit is contained in:
April Hall 2025-02-22 02:46:52 -05:00
parent 9711b0c926
commit 06fc962c09
Signed by: arithefirst
GPG Key ID: 4508A15C4DB91C5B

View File

@ -7,8 +7,7 @@
async function submit(e: SubmitEvent) { async function submit(e: SubmitEvent) {
e.preventDefault(); e.preventDefault();
if (files.length === 0) return; if (files.length === 0) return;
const res = await generateStream(files[0]); await generateStream(files[0]).then(() => window.location.reload());
console.log(res);
} }
</script> </script>