Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
amortemousque committed Jun 10, 2024
1 parent f5b9b06 commit 10bc671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/transport/eventBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface BrowserWindowWithEventBridge extends Window {

export interface DatadogEventBridge {
getCapabilities?(): string
getPrivacyLevel?(): string
getPrivacyLevel?(): DefaultPrivacyLevel
getAllowedWebViewHosts(): string
send(msg: string): void
}
Expand All @@ -29,7 +29,7 @@ export function getEventBridge<T, E>() {
return JSON.parse(eventBridgeGlobal.getCapabilities?.() || '[]') as BridgeCapability[]
},
getPrivacyLevel() {
return eventBridgeGlobal.getPrivacyLevel?.() as DefaultPrivacyLevel
return eventBridgeGlobal.getPrivacyLevel?.()
},
getAllowedWebViewHosts() {
return JSON.parse(eventBridgeGlobal.getAllowedWebViewHosts()) as string[]
Expand Down

0 comments on commit 10bc671

Please sign in to comment.