mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-11 16:18:10 +00:00
Merge pull request #194 from thewhodidthis/bf#193--gui
core/GUI: make sure _setRequiredKeys exists before accessing its size
This commit is contained in:
commit
987ef20629
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user