mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-10 10:40:54 +00:00
commit
52df4e0421
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "psychojs",
|
||||
"version": "2022.1.0",
|
||||
"version": "2022.1.1",
|
||||
"private": true,
|
||||
"description": "Helps run in-browser neuroscience, psychology, and psychophysics experiments",
|
||||
"license": "MIT",
|
||||
|
@ -532,7 +532,7 @@ export class GUI
|
||||
_updateOkButtonStatus(changeFocus = true)
|
||||
{
|
||||
if (
|
||||
this._psychoJS.getEnvironment() === ExperimentHandler.Environment.LOCAL
|
||||
(this._psychoJS.getEnvironment() === ExperimentHandler.Environment.LOCAL)
|
||||
|| (this._allResourcesDownloaded && this._setRequiredKeys && this._setRequiredKeys.size >= this._requiredKeys.length)
|
||||
)
|
||||
{
|
||||
|
@ -176,7 +176,7 @@ export class PsychoJS
|
||||
}
|
||||
|
||||
this.logger.info("[PsychoJS] Initialised.");
|
||||
this.logger.info("[PsychoJS] @version 2022.1.0");
|
||||
this.logger.info("[PsychoJS] @version 2022.1.1");
|
||||
|
||||
// hide the initialisation message:
|
||||
jQuery("#root").addClass("is-ready");
|
||||
|
@ -572,6 +572,10 @@ export class ServerManager extends PsychObject
|
||||
// note: we return a Promise that will be resolved when all the resources are downloaded
|
||||
if (resourcesToDownload.size === 0)
|
||||
{
|
||||
this.emit(ServerManager.Event.RESOURCE, {
|
||||
message: ServerManager.Event.DOWNLOAD_COMPLETED,
|
||||
});
|
||||
|
||||
return Promise.resolve();
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user