From b2e4de775aad46ed3b0d8c4a013c30fa0ad3e67d Mon Sep 17 00:00:00 2001 From: Jan Mach Date: Thu, 25 May 2023 22:05:17 +0200 Subject: [PATCH] Custom widgets - send location info of the main window to widgets --- 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 };