diff --git a/js/main.js b/js/main.js
index 05f5c6e..2c7db80 100644
--- a/js/main.js
+++ b/js/main.js
@@ -114,6 +114,16 @@ async function retrievePacketList() {
});
})
+ if (config.exam_results_url != "" && config.exam_results_url != undefined) {
+ let url = `${config.exam_results_url}${global_cid}/${global_passcode}`;
+
+ $("#options-link")
+ .empty()
+ .append(
+ `Results and answers
`
+ );
+ }
+
$("#candidate-details").append(`Current: CID ${global_cid} / Passcode ${global_passcode} `).append(logout);
} else {
@@ -297,15 +307,6 @@ async function loadExamList(data) {
);
}
- if (config.exam_results_url != "" && config.exam_results_url != undefined) {
- let url = `${config.exam_results_url}${global_cid}/${global_passcode}`;
-
- $("#options-link")
- .empty()
- .append(
- `Results and answers
`
- );
- }
// Check the database for exams that have been saved
question_db.saved_exams.toArray().then((saved_exams) => {