diff --git a/index.html b/index.html
index 7cc3752..57bebba 100644
--- a/index.html
+++ b/index.html
@@ -439,7 +439,7 @@ while (await new Promise(o => setTimeout(o, 1000, true))) {
await writable.close();
await Rpc2.notify('close');
} catch (e) {
- alert('(ERROR) ' + String(e ?? 'File operation failed'));
+ alert('(ERROR) ' + new String(e ?? 'File operation failed'));
await writable.abort().catch(() => void 0);
}
writable = null;
@@ -454,14 +454,14 @@ while (await new Promise(o => setTimeout(o, 1000, true))) {
let chunk = $('#chunksize').valueAsNumber;
let total = $('#slice').checked ? Math.min(chunk, limit - chunk * $('#offset').valueAsNumber) : limit;
- $('#progressLabel').innerText = `${parseFloat(index / total * 100).toFixed(2)}% (${index}/${total})`
+ $('#progressLabel').innerText = `${parseFloat(index / total * 100).toFixed(2)}% (${index}/${total})`;
$('#subjectLabel').innerText = subject ?? '';
$('#recipientLabel').innerText = recipient ? `${recipient} <${email}>` : email ?? '';
let uptime = await Rpc2.invoke('uptime').catch(() => 0);
$('#uptimeLabel').innerText = Temporal.Duration.from({ seconds: uptime }).round({ largestUnit: 'hours' }).toLocaleString('en', { style: 'digital' });
- let rate = index / uptime
+ let rate = index / uptime;
let remaining = index ? Math.floor((total - index) / rate) : 0;
$('#remainingLabel').innerText = remaining ? `${Temporal.Duration.from({ seconds: remaining }).round({ largestUnit: 'hours' }).toLocaleString('en')} (${rate.toFixed(2)}/min)` : '';
break;