Skip to content

Commit

Permalink
fix: timer polling url for LTI exams (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharis278 authored Aug 23, 2023
1 parent 8b0f15c commit b8ed1fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/timer/TimerProvider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit b8ed1fe

Please sign in to comment.