From b8ed1fed43bf19a667ffa41a9c227728fdc253f8 Mon Sep 17 00:00:00 2001 From: Zachary Hancock Date: Wed, 23 Aug 2023 14:18:06 -0400 Subject: [PATCH] fix: timer polling url for LTI exams (#114) --- src/timer/TimerProvider.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/timer/TimerProvider.jsx b/src/timer/TimerProvider.jsx index dba5e675..e64f706c 100644 --- a/src/timer/TimerProvider.jsx +++ b/src/timer/TimerProvider.jsx @@ -54,9 +54,8 @@ const TimerServiceProvider = ({ ).join(':'); const pollExam = () => { - const url = attempt.exam_started_poll_url; - const queryString = `?sourceid=in_exam&proctored=${attempt.taking_as_proctored}`; - pollHandler(url + queryString); + // poll url may be null if this is an LTI exam + pollHandler(attempt.exam_started_poll_url); }; const processTimeLeft = (timer, secondsLeft) => {