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