Port answerbox report feature to TypeScript

This commit is contained in:
Andreas Nedbal 2022-01-09 00:55:12 +01:00 committed by Andreas Nedbal
parent 74463b271c
commit 346037ddda
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
export function answerboxReportHandler(event: Event): void {
event.preventDefault();
const button = event.target as HTMLButtonElement;
const answerId = button.dataset.aId;
window['reportDialog']('answer', answerId);
}