diff --git a/js/core/GUI.js b/js/core/GUI.js index 555a2cf..a99290b 100644 --- a/js/core/GUI.js +++ b/js/core/GUI.js @@ -624,7 +624,7 @@ export class GUI */ _updateOkButtonStatus() { - if (this._psychoJS.getEnvironment() === ExperimentHandler.Environment.LOCAL || (this._allResourcesDownloaded && this._setRequiredKeys.size >= this._requiredKeys.length)) + if (this._psychoJS.getEnvironment() === ExperimentHandler.Environment.LOCAL || (this._allResourcesDownloaded && this._setRequiredKeys && this._setRequiredKeys.size >= this._requiredKeys.length)) { $("#buttonOk").button("option", "disabled", false).focus(); }