Port answerbox report feature to TypeScript
This commit is contained in:
parent
74463b271c
commit
346037ddda
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue