From 10bc671246d661df3f3087e20319edc0e2c9e6a2 Mon Sep 17 00:00:00 2001 From: Aymeric Mortemousque Date: Mon, 10 Jun 2024 11:54:14 +0200 Subject: [PATCH] Fix type --- packages/core/src/transport/eventBridge.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/transport/eventBridge.ts b/packages/core/src/transport/eventBridge.ts index 6c8afb5639..887c94849f 100644 --- a/packages/core/src/transport/eventBridge.ts +++ b/packages/core/src/transport/eventBridge.ts @@ -8,7 +8,7 @@ export interface BrowserWindowWithEventBridge extends Window { export interface DatadogEventBridge { getCapabilities?(): string - getPrivacyLevel?(): string + getPrivacyLevel?(): DefaultPrivacyLevel getAllowedWebViewHosts(): string send(msg: string): void } @@ -29,7 +29,7 @@ export function getEventBridge() { return JSON.parse(eventBridgeGlobal.getCapabilities?.() || '[]') as BridgeCapability[] }, getPrivacyLevel() { - return eventBridgeGlobal.getPrivacyLevel?.() as DefaultPrivacyLevel + return eventBridgeGlobal.getPrivacyLevel?.() }, getAllowedWebViewHosts() { return JSON.parse(eventBridgeGlobal.getAllowedWebViewHosts()) as string[]