[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

View File

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