Fix embed loading regression (#227)

* pass in the embed index.html (a page just containing <replay-app-main></replay-app-main>) to wabac.js via indexHtml query arg
to be served back at replay root
fixes regression in 1.8.9, fixes #226
* update CHANGES.md
* bump to wabac.js 2.16.11
This commit is contained in:
Ilya Kreymer
2023-08-29 14:28:04 -07:00
committed by GitHub
parent 47fb16590c
commit 16284ee198
8 changed files with 38 additions and 22 deletions
+9
View File
@@ -11,6 +11,14 @@ import rwpLogo from "../assets/logo.svg";
const apiPrefix = "./w/api";
const replayPrefix = "./w";
const EMBED_INDEX_HTML = `
<!doctype html>
<html>
<body>
<replay-app-main></replay-app-main>
</body></html>
`;
// ===========================================================================
const allCss = unsafeCSS(allCssRaw);
function wrapCss(custom) {
@@ -232,4 +240,5 @@ export {
unsafeSVG,
apiPrefix,
replayPrefix,
EMBED_INDEX_HTML
};