From 58a05c0e405423d3b94aff10d41d76bcdb3f6e89 Mon Sep 17 00:00:00 2001 From: Rashi1997 Date: Thu, 11 Feb 2021 14:45:04 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20better=20way=20of=20assi?= =?UTF-8?q?gning=20defaults=20for=20showmessage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trials/showMessage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trials/showMessage.js b/trials/showMessage.js index 448fe2c..51ce203 100644 --- a/trials/showMessage.js +++ b/trials/showMessage.js @@ -29,14 +29,14 @@ const { baseStimulus } = require("../lib/markup/stimuli"); module.exports = function (config, options) { const defaults = { responseType: "html_keyboard_response", - duration: options.responseType == "html_keyboard_response" ? 1000 : null, + duration: options.responseType == "html_button_response" ? null : 1000, stimulus: "", message: "", onstart: false, responseEndsTrial: false, taskCode: 1, numBlinks: 1, - buttons: options.responseType == "html_button_response" ? ["OK"] : null, + buttons: options.responseType == "html_keyboard_response" ? null : ["OK"], }; const { responseType,