Skip to content

Commit

Permalink
Get OS by inspecting command
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lblasa authored and facebook-github-bot committed Aug 2, 2023
1 parent a8d96b8 commit 4e998ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion desktop/flipper-server-core/src/recorder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 4e998ac

Please sign in to comment.