From 60d15a0e4692282392acd1945a387b0902337117 Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 5 Aug 2022 11:10:50 +0100 Subject: [PATCH] . --- js/interact.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/interact.js b/js/interact.js index d703504..0853850 100644 --- a/js/interact.js +++ b/js/interact.js @@ -142,7 +142,7 @@ function submissionError(data, answer_json, exam_details) { $("#submit-error-overlay").height(docHeight); - let file = new Blob([answer_json], {type: "application/json"}) + let file = new Blob([JSON.stringify(answer_json)], {type: "application/json"}) let link = document.getElementById("save-failed-answers"); link.href = URL.createObjectURL(file);