[logging] Add flag for document visibility (#9070)

This commit is contained in:
Grace Guo 2020-02-03 11:29:02 -08:00 committed by GitHub
parent bee913bbb1
commit c9a4384b5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ const loggerMiddleware = store => next => action => {
...eventData,
event_type: 'user',
event_id: lastEventId,
visibility: document.visibilityState,
};
}