From e873140222c72ed780ce06542ea7b3ebfce8dc94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Mach?= <92859870+JMach1@users.noreply.github.com> Date: Thu, 25 May 2023 22:30:51 +0200 Subject: [PATCH] Custom widgets - send location info of the main window to widgets (#2186) --- src/components/custom-widget/listenForSecretsRequests.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/custom-widget/listenForSecretsRequests.ts b/src/components/custom-widget/listenForSecretsRequests.ts index 1da8becf0..fb67d6745 100644 --- a/src/components/custom-widget/listenForSecretsRequests.ts +++ b/src/components/custom-widget/listenForSecretsRequests.ts @@ -23,6 +23,7 @@ export class ListenForSecretsRequests { const managementApiUrl = await settingsProvider.getSetting(SettingNames.managementApiUrl); const secrets: Secrets = { + ["parentLocation" as any]: JSON.parse(JSON.stringify(window.location)), // override typescript until new version of the package is released TODO fix managementApiUrl: Utils.ensureUrlArmified(managementApiUrl), apiVersion: managementApiVersion };