allow widget related params in the fragment (#1675)
Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user