Skip to content
This repository was archived by the owner on Oct 4, 2025. It is now read-only.

Commit c28d275

Browse files
committed
ipfs: replay options: add 'loading' option
bump to 0.1.4
1 parent 6f4d024 commit c28d275

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "git",
88
"url": "git+https://github.com/webrecorder/awp-sw.git"
99
},
10-
"version": "0.1.3",
10+
"version": "0.1.4",
1111
"license": "AGPL-3.0-or-later",
1212
"exports": {
1313
".": "./src/index.js"

src/ipfsutils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ export async function encodeBlocks(blocks, root) {
376376
}
377377

378378
function getReplayHtml(waczPath, replayOpts = {}) {
379-
const { showEmbed, pageUrl, pageTitle, deepLink } = replayOpts;
379+
const { showEmbed, pageUrl, pageTitle, deepLink, loading } = replayOpts;
380380

381381
return `
382382
<!doctype html>
@@ -397,7 +397,7 @@ function getReplayHtml(waczPath, replayOpts = {}) {
397397
</style>
398398
</head>
399399
<body>${showEmbed ? `
400-
<replay-web-page ${deepLink ? "deepLink=\"true\" " : ""}url="${pageUrl}" embed="replay-with-info" src="${waczPath}"></replay-web-page>` : `
400+
<replay-web-page ${deepLink ? "deepLink=\"true\" " : ""}url="${pageUrl}" loading="${loading || ''}" embed="replay-with-info" src="${waczPath}"></replay-web-page>` : `
401401
<replay-app-main source="${waczPath}"></replay-app-main>`
402402
}
403403
</body>

0 commit comments

Comments
 (0)