allow widget related params in the fragment (#1675)

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo
2023-10-03 21:35:28 +02:00
committed by GitHub
parent e54a1274bb
commit 01b2367f38
2 changed files with 7 additions and 3 deletions

View File

@@ -70,9 +70,7 @@ interface WidgetHelpers {
*/
export const widget: WidgetHelpers | null = (() => {
try {
const query = new URLSearchParams(window.location.search);
const widgetId = query.get("widgetId");
const parentUrl = query.get("parentUrl");
const { widgetId, parentUrl } = getUrlParams();
if (widgetId && parentUrl) {
const parentOrigin = new URL(parentUrl).origin;