Skip to content

Commit 8e715cd

Browse files
authored
deps: update to wabac.js 2.16.12, use default index html loading (#232)
wabac.js now serves the correct index for RWP, don't need to inject custom html bump to 1.8.11, update CHANGELIST
1 parent d31c25c commit 8e715cd

File tree

8 files changed

+19
-28
lines changed

8 files changed

+19
-28
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## CHANGES
22

3+
v1.8.11
4+
- Loading: Use default html index, avoid custom html injection (via wabac.js 2.16.12)
5+
- Dependencies: Switch to wabac.js 2.16.12
6+
37
v1.8.10
48
- Regression fix: Fix embed loading from different domain being broken in 1.8.9
59
- Dependencies: Switch to wabac.js 2.16.11

_data/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "replaywebpage",
33
"productName": "ReplayWeb.page",
4-
"version": "1.8.10",
4+
"version": "1.8.11",
55
"description": "Serverless Web Archive Replay",
66
"repository": "https://github.com/webrecorder/replayweb.page",
77
"homepage": "https://replayweb.page/",
88
"author": "Webrecorder Software",
99
"license": "AGPL-3.0-or-later",
1010
"dependencies": {
1111
"@fortawesome/fontawesome-free": "^5.15.4",
12-
"@webrecorder/wabac": "^2.16.11",
12+
"@webrecorder/wabac": "^2.16.12",
1313
"bulma": "^0.9.3",
1414
"electron-log": "^4.4.1",
1515
"electron-updater": "^5.3.0",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "replaywebpage",
33
"productName": "ReplayWeb.page",
4-
"version": "1.8.10",
4+
"version": "1.8.11",
55
"description": "Serverless Web Archive Replay",
66
"repository": "https://github.com/webrecorder/replayweb.page",
77
"homepage": "https://replayweb.page/",
88
"author": "Webrecorder Software",
99
"license": "AGPL-3.0-or-later",
1010
"dependencies": {
1111
"@fortawesome/fontawesome-free": "^5.15.4",
12-
"@webrecorder/wabac": "^2.16.11",
12+
"@webrecorder/wabac": "^2.16.12",
1313
"bulma": "^0.9.3",
1414
"electron-log": "^4.4.1",
1515
"electron-updater": "^5.3.0",

src/embed.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { LitElement, html, css } from "lit";
22
import { ifDefined } from "lit/directives/if-defined.js";
33

4-
import { wrapCss, rwpLogo, EMBED_INDEX_HTML } from "./misc";
4+
import { wrapCss, rwpLogo } from "./misc";
55
import { SWManager } from "./swmanager";
66

77
var scriptSrc = document.currentScript && document.currentScript.src;
@@ -101,10 +101,7 @@ class Embed extends LitElement {
101101
return;
102102
}
103103

104-
const query = new URLSearchParams();
105-
query.set("indexHtml", EMBED_INDEX_HTML);
106-
107-
const name = this.swName + "?" + query.toString();
104+
const name = this.swName + "?serveIndex=1";
108105
const appName = this.appName;
109106
const scope = this.replaybase;
110107
const requireSubdomainIframe = this.requireSubdomainIframe;

src/misc.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ import rwpLogo from "../assets/logo.svg";
1111
const apiPrefix = "./w/api";
1212
const replayPrefix = "./w";
1313

14-
const EMBED_INDEX_HTML = `
15-
<!doctype html>
16-
<html>
17-
<head><script src="./ui.js"></script></head>
18-
<body>
19-
<replay-app-main></replay-app-main>
20-
</body></html>
21-
`;
22-
2314
// ===========================================================================
2415
const allCss = unsafeCSS(allCssRaw);
2516
function wrapCss(custom) {
@@ -240,6 +231,5 @@ export {
240231
unsafeCSS,
241232
unsafeSVG,
242233
apiPrefix,
243-
replayPrefix,
244-
EMBED_INDEX_HTML
234+
replayPrefix
245235
};

sw.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -756,10 +756,10 @@
756756
resolved "https://registry.yarnpkg.com/@webpack-cli/serve/-/serve-2.0.1.tgz#34bdc31727a1889198855913db2f270ace6d7bf8"
757757
integrity sha512-0G7tNyS+yW8TdgHwZKlDWYXFA6OJQnoLCQvYKkQP0Q2X205PSQ6RNUj0M+1OB/9gRQaUZ/ccYfaxd0nhaWKfjw==
758758

759-
"@webrecorder/wabac@^2.16.11":
760-
version "2.16.11"
761-
resolved "https://registry.yarnpkg.com/@webrecorder/wabac/-/wabac-2.16.11.tgz#721a56daf2696e1619aea9d9d8977111fd7ae8d1"
762-
integrity sha512-u2Ge1u07d0EppkwTsXkrmyIfE93/9HzWWJqiEvfCBhXAWyP4DkPCc8hJJlVTDkYrwe04ERiYUP/XNpCojiXd+A==
759+
"@webrecorder/wabac@^2.16.12":
760+
version "2.16.12"
761+
resolved "https://registry.yarnpkg.com/@webrecorder/wabac/-/wabac-2.16.12.tgz#cf9ce5490cffcc34f0c1c4a30245276a094d78b2"
762+
integrity sha512-lqu9L4Ig2TWzt3t7cKs2CH9epkSt0k09NLx58xzytcHiH2sSEMpk5/ZvBQhNEjjd9Hb2gh3G7Clf7qdXB6b8lA==
763763
dependencies:
764764
"@peculiar/asn1-ecc" "^2.3.4"
765765
"@peculiar/asn1-schema" "^2.3.3"

0 commit comments

Comments
 (0)