mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-14 23:06:33 +00:00
Merge pull request #2557 from balena-io/explicit-safe-webview-events
Use explicit names for safe-webview events
This commit is contained in:
commit
cf596a88ab
@ -194,7 +194,8 @@ class SafeWebview extends react.PureComponent {
|
|||||||
if (event.resourceType === 'mainFrame') {
|
if (event.resourceType === 'mainFrame') {
|
||||||
const HTTP_OK = 200
|
const HTTP_OK = 200
|
||||||
|
|
||||||
analytics.logEvent(event, {
|
analytics.logEvent('SafeWebview loaded', {
|
||||||
|
event,
|
||||||
applicationSessionUuid: store.getState().toJS().applicationSessionUuid,
|
applicationSessionUuid: store.getState().toJS().applicationSessionUuid,
|
||||||
flashingWorkflowUuid: store.getState().toJS().flashingWorkflowUuid
|
flashingWorkflowUuid: store.getState().toJS().flashingWorkflowUuid
|
||||||
})
|
})
|
||||||
@ -250,7 +251,8 @@ class SafeWebview extends react.PureComponent {
|
|||||||
if (message.command === 'error') {
|
if (message.command === 'error') {
|
||||||
analytics.logException(message.data)
|
analytics.logException(message.data)
|
||||||
} else {
|
} else {
|
||||||
analytics.logEvent(message.data || message, {
|
analytics.logEvent('SafeWebview console message', {
|
||||||
|
message,
|
||||||
applicationSessionUuid: store.getState().toJS().applicationSessionUuid,
|
applicationSessionUuid: store.getState().toJS().applicationSessionUuid,
|
||||||
flashingWorkflowUuid: store.getState().toJS().flashingWorkflowUuid
|
flashingWorkflowUuid: store.getState().toJS().flashingWorkflowUuid
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user