Make Logs view optional

This commit is contained in:
Justin Stephenson 2019-09-06 11:16:09 -04:00
parent 811b80fa27
commit feed483646
2 changed files with 20 additions and 7 deletions

View file

@ -947,7 +947,9 @@ export class Player extends React.Component {
}
/* Send packet ts to the top */
this.props.onTsChange(this.pkt.pos);
if (this.props.logsEnabled) {
this.props.onTsChange(this.pkt.pos);
}
this.setState({currentTsPost: parseInt(this.pkt.pos)});
/* Output the packet */