embedding tweaks: resolve relative "source" URL to current page before passing to app
docs: embedding: add example using latest npm release for testing, recommend versioned releases for production
This commit is contained in:
+3
-1
@@ -121,8 +121,10 @@ class Embed extends LitElement
|
||||
|
||||
this.embed = this.embed || "default";
|
||||
|
||||
const source = new URL(this.source, document.baseURI);
|
||||
|
||||
this.paramString = new URLSearchParams({
|
||||
source: this.source,
|
||||
source,
|
||||
customColl: this.coll,
|
||||
config: this.config,
|
||||
basePageUrl: window.location.href.split("#")[0],
|
||||
|
||||
Reference in New Issue
Block a user