diff --git a/mephisto/abstractions/providers/mturk/wrap_crowd_source.js b/mephisto/abstractions/providers/mturk/wrap_crowd_source.js index d953f1cd4..fcbf9fb7b 100644 --- a/mephisto/abstractions/providers/mturk/wrap_crowd_source.js +++ b/mephisto/abstractions/providers/mturk/wrap_crowd_source.js @@ -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; diff --git a/mephisto/abstractions/providers/mturk_sandbox/wrap_crowd_source.js b/mephisto/abstractions/providers/mturk_sandbox/wrap_crowd_source.js index 50ce909dc..df6a557ce 100644 --- a/mephisto/abstractions/providers/mturk_sandbox/wrap_crowd_source.js +++ b/mephisto/abstractions/providers/mturk_sandbox/wrap_crowd_source.js @@ -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;