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
This commit is contained in:
+2
-5
@@ -1,7 +1,7 @@
|
||||
import { LitElement, html, css } from "lit";
|
||||
import { ifDefined } from "lit/directives/if-defined.js";
|
||||
|
||||
import { wrapCss, rwpLogo, EMBED_INDEX_HTML } from "./misc";
|
||||
import { wrapCss, rwpLogo } from "./misc";
|
||||
import { SWManager } from "./swmanager";
|
||||
|
||||
var scriptSrc = document.currentScript && document.currentScript.src;
|
||||
@@ -101,10 +101,7 @@ class Embed extends LitElement {
|
||||
return;
|
||||
}
|
||||
|
||||
const query = new URLSearchParams();
|
||||
query.set("indexHtml", EMBED_INDEX_HTML);
|
||||
|
||||
const name = this.swName + "?" + query.toString();
|
||||
const name = this.swName + "?serveIndex=1";
|
||||
const appName = this.appName;
|
||||
const scope = this.replaybase;
|
||||
const requireSubdomainIframe = this.requireSubdomainIframe;
|
||||
|
||||
+1
-11
@@ -11,15 +11,6 @@ import rwpLogo from "../assets/logo.svg";
|
||||
const apiPrefix = "./w/api";
|
||||
const replayPrefix = "./w";
|
||||
|
||||
const EMBED_INDEX_HTML = `
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head><script src="./ui.js"></script></head>
|
||||
<body>
|
||||
<replay-app-main></replay-app-main>
|
||||
</body></html>
|
||||
`;
|
||||
|
||||
// ===========================================================================
|
||||
const allCss = unsafeCSS(allCssRaw);
|
||||
function wrapCss(custom) {
|
||||
@@ -240,6 +231,5 @@ export {
|
||||
unsafeCSS,
|
||||
unsafeSVG,
|
||||
apiPrefix,
|
||||
replayPrefix,
|
||||
EMBED_INDEX_HTML
|
||||
replayPrefix
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user