diff --git a/js/interact.js b/js/interact.js
index 976b423..9477279 100644
--- a/js/interact.js
+++ b/js/interact.js
@@ -147,9 +147,6 @@ export function getQuestion(url, question_number, question_total) {
dataType: "json",
url: url,
progress: function(e) {
- $("#progress").html(
- `Downloading question [${question_number}/${question_total}]
This file is compressed (no size available)`
- );
if (e.lengthComputable) {
var completedPercentage = Math.round((e.loaded * 100) / e.total);
@@ -158,6 +155,10 @@ export function getQuestion(url, question_number, question_total) {
e.total
)}`
);
+ } else {
+ $("#progress").html(
+ `Downloading question [${question_number}/${question_total}]
This file is compressed (downloaded ${helper.humanFileSize(e.loaded)})`
+ );
}
},
error: (jqXHR, textStatus, errorThrown) => {
diff --git a/js/main.js b/js/main.js
index be43366..33a1121 100644
--- a/js/main.js
+++ b/js/main.js
@@ -2695,6 +2695,10 @@ $(document).on("saveSessionEvent", {}, (evt, review) => {
saveSession(review);
});
+$(document).contextmenu(() => {
+ return false;
+})
+
// Helper to compare dates
function compareDates(d1, d2) {
console.log("compare", d1, d2);