Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 9e454f0

Browse files
committed
No refresh on peer pages
1 parent 1b36b82 commit 9e454f0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

runestone/common/js/bookfuncs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ async function handlePageSetup() {
194194
$(document).trigger("runestone:login");
195195
addReadingList();
196196
// Avoid the timedRefresh on the grading page.
197-
if (window.location.pathname.indexOf("/admin/grading") == -1) {
197+
if ((window.location.pathname.indexOf("/admin/grading") == -1)
198+
&& (window.location.pathname.indexOf("/peer/") == -1)) {
198199
timedRefresh();
199200
}
200201
} else {

0 commit comments

Comments
 (0)