From ee8423243f17a744805d6b333a207c50b23db576 Mon Sep 17 00:00:00 2001 From: Eitan Hemed <37670372+EitanHemed@users.noreply.github.com> Date: Fri, 11 Oct 2024 13:09:29 +0200 Subject: [PATCH 1/2] Update jspsych-extension-mouse-tracking.html The const `start` has been removed in the previous commit, and does not seem to be currently required to run the demo (i.e., the reference to it raises "Uncaught ReferenceError:". --- examples/jspsych-extension-mouse-tracking.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/jspsych-extension-mouse-tracking.html b/examples/jspsych-extension-mouse-tracking.html index c5e60174aa..069eab4136 100644 --- a/examples/jspsych-extension-mouse-tracking.html +++ b/examples/jspsych-extension-mouse-tracking.html @@ -84,7 +84,7 @@ }; if (typeof jsPsych !== "undefined") { - jsPsych.run([start, trial_loop]); + jsPsych.run([trial_loop]); } else { document.body.innerHTML = '
You must be online to view the plugin demo.
'; } From 82ca14909219e8019bb2c83797e5b06d5cf19e54 Mon Sep 17 00:00:00 2001 From: jade <101148768+jadeddelta@users.noreply.github.com> Date: Tue, 29 Oct 2024 14:20:10 -0400 Subject: [PATCH 2/2] remove check for jspsych object in example --- examples/jspsych-extension-mouse-tracking.html | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/examples/jspsych-extension-mouse-tracking.html b/examples/jspsych-extension-mouse-tracking.html index 069eab4136..886dd46120 100644 --- a/examples/jspsych-extension-mouse-tracking.html +++ b/examples/jspsych-extension-mouse-tracking.html @@ -82,13 +82,8 @@ return true; } }; - - if (typeof jsPsych !== "undefined") { - jsPsych.run([trial_loop]); - } else { - document.body.innerHTML = '
You must be online to view the plugin demo.
'; - } - + + jsPsych.run([trial_loop]);