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
+5 -2
View File
@@ -1,7 +1,7 @@
import { LitElement, html, css } from "lit";
import { ifDefined } from "lit/directives/if-defined.js";
import { wrapCss, rwpLogo } from "./misc";
import { wrapCss, rwpLogo, EMBED_INDEX_HTML } from "./misc";
import { SWManager } from "./swmanager";
var scriptSrc = document.currentScript && document.currentScript.src;
@@ -101,7 +101,10 @@ class Embed extends LitElement {
return;
}
const name = this.swName;
const query = new URLSearchParams();
query.set("indexHtml", EMBED_INDEX_HTML);
const name = this.swName + "?" + query.toString();
const appName = this.appName;
const scope = this.replaybase;
const requireSubdomainIframe = this.requireSubdomainIframe;