wacz loading: support wacz 1.0.0! -- update to wabac.js 2.3.0
local file loading: support purge cache + reload for local files when filehandles are used (chrome) update CHANGES.md bump to 1.3.1
This commit is contained in:
+1
-13
@@ -191,19 +191,7 @@ class Pages extends LitElement
|
||||
const resp = await fetch(`${this.collInfo.apiPrefix}/curated/${this.currList}`);
|
||||
const json = await resp.json();
|
||||
|
||||
const curated = [];
|
||||
|
||||
for (const c of json.curated) {
|
||||
for (const p of this.filteredPages) {
|
||||
if (p.id === c.page) {
|
||||
if (p.ts) {
|
||||
p.date = new Date(p.ts).toISOString();
|
||||
}
|
||||
curated.push(p);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
const curated = json.curated;
|
||||
|
||||
this.filteredPages = curated;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user