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

Commit ff939ea

Browse files
committed
ensure we update page status
1 parent 56856b2 commit ff939ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runestone/common/js/user-highlights.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ function addNavigationAndCompletionButtons() {
122122
} else {
123123
completionFlag = 1;
124124
}
125+
// Make sure we mark this page as visited regardless of how flakey
126+
// the onunload handlers become.
127+
processPageState(completionFlag);
125128
$("#completionButton").on("click", function () {
126129
if ($(this).hasClass("buttonAskCompletion")) {
127130
$(this)

0 commit comments

Comments
 (0)