diff options
| Commit | 9ac61425b3711b7f5fbba394a88523bf35d81068 (patch) | |
|---|---|---|
| Author | 2025-02-09 21:43:49 +0200 | |
| Committer | 2025-02-09 21:43:49 +0200 | |
| Files | 5fa9c7e318d7614e2a85cfceecbfdfc29ba2e92d /views | |
| nowayforward_human-9ac61425b3711b7f5fbba394a88523bf35d81068.tar nowayforward_human-9ac61425b3711b7f5fbba394a88523bf35d81068.tar.gz nowayforward_human-9ac61425b3711b7f5fbba394a88523bf35d81068.zip | ||
| Parent | 1cf37089ebe8f662abdb15773f9886a1e3521fc3 (diff) | |
feat(views/archive): Better message when timeout is reached in queue waiting
1 files changed, 7 insertions, 1 deletions
| -rw-r--r-- | views/archive/create/index.php | 8 |
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); |
