Encode the collection sharing URL (#1362)
This commit is contained in:
parent
30bbefbeaa
commit
a71815a342
@ -221,7 +221,8 @@ export class CollectionDetail extends LiteElement {
|
||||
|
||||
private renderShareInfo = () => {
|
||||
const replaySrc = this.getPublicReplayURL();
|
||||
const publicReplayUrl = `https://replayweb.page?source=${replaySrc}`;
|
||||
const encodedReplaySrc = encodeURIComponent(replaySrc);
|
||||
const publicReplayUrl = `https://replayweb.page?source=${encodedReplaySrc}`;
|
||||
const embedCode = `<replay-web-page source="${replaySrc}"></replay-web-page>`;
|
||||
const importCode = `importScripts("https://replayweb.page/sw.js");`;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user