Port inbox author search functionality to TypeScript
This commit is contained in:
parent
2b06d6a6cc
commit
8797652746
|
@ -0,0 +1,6 @@
|
|||
export function authorSearchHandler(event: Event): void {
|
||||
event.preventDefault();
|
||||
|
||||
const author = document.querySelector<HTMLInputElement>('#author')?.value;
|
||||
window.location.href = `/inbox/${author}`;
|
||||
}
|
Loading…
Reference in New Issue