Skip to content

Commit a7ea790

Browse files
laumairrmevans9
authored andcommitted
feat: allow exporting command timestamps
1 parent 3761785 commit a7ea790

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Stores/UiStore.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,13 +536,15 @@ class UI {
536536
return
537537
}
538538
const formatCommand = command => ({
539+
time: command.date,
539540
clientId: command.clientId,
540541
payload: {
541542
name: command.payload.name,
542543
action: command.payload.action,
543544
},
544545
type: command.type,
545546
})
547+
546548
const commands = JSON.stringify(this.session.commands.map(formatCommand))
547549
fs.writeFile(this.exportFilePath + "/reactotron_timeline.txt", commands, err => {
548550
if (err) {

0 commit comments

Comments
 (0)