From 7354fa30500970e3e090efa02b332e822a0d87ad Mon Sep 17 00:00:00 2001 From: Lorenzo Alberto Maria Ambrosi Date: Mon, 26 Nov 2018 16:46:02 +0100 Subject: [PATCH] Use explicit names for safe-webview events Change-type: patch Signed-off-by: Lorenzo Alberto Maria Ambrosi --- lib/gui/app/components/safe-webview/safe-webview.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/gui/app/components/safe-webview/safe-webview.jsx b/lib/gui/app/components/safe-webview/safe-webview.jsx index 2725c1c7..00f3ebb3 100644 --- a/lib/gui/app/components/safe-webview/safe-webview.jsx +++ b/lib/gui/app/components/safe-webview/safe-webview.jsx @@ -194,7 +194,8 @@ class SafeWebview extends react.PureComponent { if (event.resourceType === 'mainFrame') { const HTTP_OK = 200 - analytics.logEvent(event, { + analytics.logEvent('SafeWebview loaded', { + event, applicationSessionUuid: store.getState().toJS().applicationSessionUuid, flashingWorkflowUuid: store.getState().toJS().flashingWorkflowUuid }) @@ -250,7 +251,8 @@ class SafeWebview extends react.PureComponent { if (message.command === 'error') { analytics.logException(message.data) } else { - analytics.logEvent(message.data || message, { + analytics.logEvent('SafeWebview console message', { + message, applicationSessionUuid: store.getState().toJS().applicationSessionUuid, flashingWorkflowUuid: store.getState().toJS().flashingWorkflowUuid })