Skip to content

Commit

Permalink
Merge pull request #988 from facebookresearch/mturk-html-sandbox-fix
Browse files Browse the repository at this point in the history
Fixing missing events in wrap_crowd_source.js
  • Loading branch information
JackUrb committed Jan 10, 2023
2 parents a22875e + 5757355 commit 5f03247
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mephisto/abstractions/providers/mturk/wrap_crowd_source.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ function handleSubmitToProvider(task_data) {
HTMLFormElement.prototype.submit.call(form);
}

const events = eventEmitter();

window._MEPHISTO_CONFIG_ = window._MEPHISTO_CONFIG_ || {};
window._MEPHISTO_CONFIG_.EVENT_EMITTER = events;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ function handleSubmitToProvider(task_data) {
HTMLFormElement.prototype.submit.call(form);
}

const events = eventEmitter();

window._MEPHISTO_CONFIG_ = window._MEPHISTO_CONFIG_ || {};
window._MEPHISTO_CONFIG_.EVENT_EMITTER = events;

Expand Down

0 comments on commit 5f03247

Please sign in to comment.