Get OS by inspecting command
Summary: Commands can be idb or adb. If no ClientQuery is provided, set the OS accordingly. Reviewed By: antonk52 Differential Revision: D47990745 fbshipit-source-id: 3e38b6ecb0a8ea21e584c1d6eff6feb53dd2cfab
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a8d96b8d87
commit
4e998ac083
@@ -47,7 +47,8 @@ class Recorder {
|
||||
const device = clientQuery?.device ?? 'NONE';
|
||||
const app = clientQuery?.app ?? 'NONE';
|
||||
const medium = clientQuery?.medium ?? 'NONE';
|
||||
const os = clientQuery?.os ?? 'Browser';
|
||||
const os =
|
||||
clientQuery?.os ?? (payload.cmd.includes('idb') ? 'iOS' : 'Android');
|
||||
|
||||
const entry: CommandRecordEntry = {
|
||||
time: new Date(),
|
||||
|
||||
Reference in New Issue
Block a user