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:
@@ -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") || "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user