@twilio/flex-ui-telemetry
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -88,3 +88,3 @@ "use strict"; | ||
_attachCallbackListener() { | ||
window.onmessage = (event) => { | ||
window.addEventListener('message', (event) => { | ||
const { type, payload: id } = event.data; | ||
@@ -99,3 +99,3 @@ if (type === constants_1.ANALYTICS_CALLBACK_EVENT && this.callbacks[id]) { | ||
} | ||
}; | ||
}); | ||
} | ||
@@ -102,0 +102,0 @@ /** |
{ | ||
"name": "@twilio/flex-ui-telemetry", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Flex UI Telemetry SDK", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -349,3 +349,3 @@ import * as semver from 'semver'; | ||
private _attachCallbackListener() { | ||
window.onmessage = (event: MessageEvent<{ type: string; payload: string }>): void => { | ||
window.addEventListener('message', (event: MessageEvent<{ type: string; payload: string }>): void => { | ||
const { type, payload: id } = event.data; | ||
@@ -359,3 +359,3 @@ if (type === ANALYTICS_CALLBACK_EVENT && this.callbacks[id]) { | ||
} | ||
}; | ||
}); | ||
} | ||
@@ -362,0 +362,0 @@ |
Sorry, the diff of this file is not supported yet
77161