Replace dashes with appropriate characters

This commit is contained in:
2026-09-13 09:05:21 +02:00
parent 7d0d303c2a
commit eb20c94c7b
6 changed files with 12 additions and 12 deletions
+4 -4
View File
@@ -67,7 +67,7 @@
// --- drag and drop ------------------------------------------------------
function describeSelection() {
var f = fileInput.files[0];
dropHint.textContent = f ? f.name + ' — ' + formatSize(f.size)
dropHint.textContent = f ? f.name + ' - ' + formatSize(f.size)
: 'Choose a file, or drop one here.';
}
@@ -109,7 +109,7 @@
progress.hidden = false;
// FormData follows DOM order, so the token, expiry and vanity fields all
// precede the file part — which is exactly what the server requires.
// precede the file part, which is exactly what the server requires.
var data = new FormData(form);
var started = Date.now();
@@ -125,8 +125,8 @@
var rate = elapsed > 0 ? ev.loaded / elapsed : 0;
var eta = rate > 0 ? (ev.total - ev.loaded) / rate : 0;
progressText.textContent =
(pct * 100).toFixed(0) + '% — ' + formatSize(ev.loaded) + ' of ' +
formatSize(ev.total) + ' — ' + formatSize(rate) + '/s' +
(pct * 100).toFixed(0) + '% - ' + formatSize(ev.loaded) + ' of ' +
formatSize(ev.total) + ' - ' + formatSize(rate) + '/s' +
(eta > 1 ? ', ' + formatTime(eta) + ' left' : '');
};