Skip to content

Commit

Permalink
remove check for jspsych object in example
Browse files Browse the repository at this point in the history
  • Loading branch information
jadeddelta committed Oct 29, 2024
1 parent ee84232 commit 82ca149
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions examples/jspsych-extension-mouse-tracking.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,8 @@
return true;
}
};

if (typeof jsPsych !== "undefined") {
jsPsych.run([trial_loop]);
} else {
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
}


jsPsych.run([trial_loop]);
</script>

</html>

0 comments on commit 82ca149

Please sign in to comment.