diff options
| author | Syndamia <kamen@syndamia.com> | 2025-02-09 21:43:49 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-02-09 21:43:49 +0200 |
| commit | 9ac61425b3711b7f5fbba394a88523bf35d81068 (patch) | |
| tree | 5fa9c7e318d7614e2a85cfceecbfdfc29ba2e92d | |
| parent | 1cf37089ebe8f662abdb15773f9886a1e3521fc3 (diff) | |
| download | nowayforward_human-9ac61425b3711b7f5fbba394a88523bf35d81068.tar nowayforward_human-9ac61425b3711b7f5fbba394a88523bf35d81068.tar.gz nowayforward_human-9ac61425b3711b7f5fbba394a88523bf35d81068.zip | |
feat(views/archive): Better message when timeout is reached in queue waiting
| -rw-r--r-- | views/archive/create/index.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/views/archive/create/index.php b/views/archive/create/index.php index b435e4d..7d9ed97 100644 --- a/views/archive/create/index.php +++ b/views/archive/create/index.php @@ -36,7 +36,13 @@ function updatePosition(url) { return; } - position.innerText = queuePos - request.responseText; + let pos = queuePos - request.responseText; + if (pos === NaN) { + position.innerText = 'Archival timeouted! Archive is incomplete!'; + } + else { + position.innerText = pos; + } setTimeout(updatePosition, 1000, url); } request.open("POST", "/archive/create/status.php", true); |
