From f3e3927221b012955ebfd66d2b2974464556503f Mon Sep 17 00:00:00 2001 From: Amy Chen Date: Thu, 21 Mar 2024 10:03:57 -0700 Subject: [PATCH] add debug info, increase retry --- portal/static/js/src/empro.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/portal/static/js/src/empro.js b/portal/static/js/src/empro.js index 57c061adc..6cf60aa92 100644 --- a/portal/static/js/src/empro.js +++ b/portal/static/js/src/empro.js @@ -518,10 +518,11 @@ emproObj.prototype.initTriggerDomains = function (callbackFunc) { } //var self = this; const isDebugging = getUrlParameter("debug"); - tnthAjax.getSubStudyTriggers(this.userId, { maxTryAttempts: isDebugging ? 1 : 3 }, (data) => { + tnthAjax.getSubStudyTriggers(this.userId, { maxTryAttempts: isDebugging ? 1 : 5 }, (data) => { if (isDebugging) { data = TestTriggersJson; } + console.log("Trigger data: ", data); if (!data || data.error || !data.triggers || !data.triggers.domain) { callback({ error: true, reason: "no trigger data" }); return false;