mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-11 16:18:11 +00:00
fix #3008
This commit is contained in:
parent
831fe2e39f
commit
464b0d2387
@ -1,6 +1,8 @@
|
||||
export class SimulationAPI {
|
||||
constructor(private getDisplayContainerElement: () => HTMLElement) {}
|
||||
|
||||
dispatchEvent(event: Event) {
|
||||
document.body.dispatchEvent(event);
|
||||
this.getDisplayContainerElement().dispatchEvent(event);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user