library support improvements: add index.js which exports all from ui.js

update to latest wabac.js -- smaller size
support for 'source' param on <replay-app-main> which sets sourceUrl and forces direct loading of a single archive only
bump version to 1.3.5
This commit is contained in:
Ilya Kreymer
2020-12-13 00:18:55 -08:00
parent 97163edfac
commit f6de8dfaf0
12 changed files with 188 additions and 221 deletions
+8
View File
@@ -51,6 +51,7 @@ class ReplayWebApp extends LitElement
collPageUrl: { type: String },
pageTitle: { type: String },
pageReplay: { type: Boolean },
source: { type: String }
}
}
@@ -331,6 +332,13 @@ class ReplayWebApp extends LitElement
}
}
if (this.source) {
this.pageParams.set("source", this.source);
const url = new URL(window.location.href);
url.search = this.pageParams.toString();
window.history.replaceState({}, document.title, url.href);
}
this.sourceUrl = this.pageParams.get("source") || "";
this.embed = this.pageParams.get("embed") || "";