ui: fix 'show non-seed pages' for multi wacz and for after first load (#187)

deps: bump to wabac.js 2.16.3
bump to 1.8.3
This commit is contained in:
Ilya Kreymer
2023-06-27 22:51:12 -07:00
committed by GitHub
parent 646f3f8d76
commit dbafc19522
7 changed files with 17 additions and 13 deletions
+2 -2
View File
@@ -254,7 +254,7 @@ class Pages extends LitElement
let resp = await cache.match(indexUrl);
if (!resp || !Number(resp.headers.get("Content-Length"))) {
resp = await fetch(`${this.collInfo.apiPrefix}/textIndex`);
resp = await fetch(indexUrl);
if (resp.status === 200 && Number(resp.headers.get("Content-Length"))) {
cache.put(indexUrl, resp.clone());
}
@@ -263,7 +263,7 @@ class Pages extends LitElement
const lines = [];
for await (const line of ndjson(resp.body.getReader())) {
if (!line.text) {
if (!line.url) {
continue;
}