Port inbox author search functionality to TypeScript

This commit is contained in:
Andreas Nedbal 2022-01-03 03:27:43 +01:00 committed by Andreas Nedbal
parent 2b06d6a6cc
commit 8797652746
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
export function authorSearchHandler(event: Event): void {
event.preventDefault();
const author = document.querySelector<HTMLInputElement>('#author')?.value;
window.location.href = `/inbox/${author}`;
}