From e9d6c68f6a4ec6530c956de8acb3a18bd2369f1f Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Mon, 14 Feb 2022 18:50:32 -0800 Subject: [PATCH] frontend: replay: use single wacz replay for now (using first wacz file) --- frontend/src/pages/archive/crawl-detail.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/archive/crawl-detail.ts b/frontend/src/pages/archive/crawl-detail.ts index d594f7b6..740496d3 100644 --- a/frontend/src/pages/archive/crawl-detail.ts +++ b/frontend/src/pages/archive/crawl-detail.ts @@ -144,7 +144,10 @@ export class CrawlDetail extends LiteElement { const isRunning = this.crawl?.state === "running"; const bearer = this.authState?.headers?.Authorization?.split(" ", 2)[1]; - const fileJson = `/api/archives/${this.archiveId}/crawls/${this.crawlId}.json?auth_bearer=${bearer}`; + + // 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; return html`
- [watch/replay] - ${this.crawl?.resources?.length + ${replaySource ? html`