frontend: support multi wacz replay using the crawl json as input

This commit is contained in:
Ilya Kreymer 2022-05-20 09:11:23 -07:00
parent 3df310ee4f
commit 955197579e

View File

@ -437,8 +437,8 @@ export class CrawlDetail extends LiteElement {
const bearer = this.authState?.headers?.Authorization?.split(" ", 2)[1];
// for now, just use the first file until multi-wacz support is fully implemented
//const replaySource = `/api/archives/${this.archiveId}/crawls/${this.crawlId}.json?auth_bearer=${bearer}`;
const replaySource = this.crawl?.resources?.[0]?.path;
const replaySource = `/api/archives/${this.crawl?.aid}/crawls/${this.crawlId}.json?auth_bearer=${bearer}`;
//const replaySource = this.crawl?.resources?.[0]?.path;
return html`
<header class="flex justify-between">