frontend: replay: use single wacz replay for now (using first wacz file)
This commit is contained in:
parent
57e5b9fceb
commit
e9d6c68f6a
@ -144,7 +144,10 @@ export class CrawlDetail extends LiteElement {
|
|||||||
const isRunning = this.crawl?.state === "running";
|
const isRunning = this.crawl?.state === "running";
|
||||||
|
|
||||||
const bearer = this.authState?.headers?.Authorization?.split(" ", 2)[1];
|
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`
|
return html`
|
||||||
<div
|
<div
|
||||||
@ -153,10 +156,9 @@ export class CrawlDetail extends LiteElement {
|
|||||||
: "border-slate-100"}"
|
: "border-slate-100"}"
|
||||||
>
|
>
|
||||||
<!-- https://github.com/webrecorder/browsertrix-crawler/blob/9f541ab011e8e4bccf8de5bd7dc59b632c694bab/screencast/index.html -->
|
<!-- https://github.com/webrecorder/browsertrix-crawler/blob/9f541ab011e8e4bccf8de5bd7dc59b632c694bab/screencast/index.html -->
|
||||||
[watch/replay]
|
${replaySource
|
||||||
${this.crawl?.resources?.length
|
|
||||||
? html`<replay-web-page
|
? html`<replay-web-page
|
||||||
source="${fileJson}"
|
source="${replaySource}"
|
||||||
coll="${this.crawl?.id}"
|
coll="${this.crawl?.id}"
|
||||||
replayBase="/replay/"
|
replayBase="/replay/"
|
||||||
noSandbox="true"
|
noSandbox="true"
|
||||||
|
Loading…
Reference in New Issue
Block a user