Port reporting users from CoffeeScript to TypeScript

This commit is contained in:
Andreas Nedbal 2021-12-25 03:34:02 +01:00
parent 2cc8a33d5b
commit 1bc52786ad
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
export function userReportHandler(event: Event): void {
event.preventDefault();
const button: HTMLButtonElement = event.target as HTMLButtonElement;
window['reportDialog']('user', button.dataset.target);
}