fix redirect loop (fixes #184): (#185)

- loading: fix redirect loop on 404s (via wabac.js 2.16.2)
- misc: additional check before autoupdate, update build deps to support Node 20
bump to 1.8.2
This commit is contained in:
Ilya Kreymer
2023-06-20 18:21:55 -07:00
committed by GitHub
parent f8116eeaa6
commit 646f3f8d76
7 changed files with 28 additions and 30 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ class Coll extends LitElement
async runUpdateLoop() {
try {
// only autoupdate if interval is set, and number of pages < 100 to avoid messing up scrolling
while (this.editable && this.autoUpdateInterval && (!this.collInfo || this.collInfo.pages.length < 100)) {
while (this.editable && this.autoUpdateInterval && (!this.collInfo || !this.collInfo.pages || this.collInfo.pages.length < 100)) {
await new Promise(resolve => setTimeout(resolve, this.autoUpdateInterval * 1000));
await this.doUpdateInfo(true);
}