Skip to content

Commit

Permalink
Make sure to only pass strings to log
Browse files Browse the repository at this point in the history
Closes connor4312#1.
  • Loading branch information
adrianheine committed Nov 3, 2017
1 parent b08ca9e commit eed568d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export class BlessedRenderer {

public attach(stats: Stats, onExit: () => void) {
this.stats = stats;
stats.on('log', (msg: string) => this.panels.log.log(msg));
stats.on('log', (msg: string) => this.panels.log.log(String(msg)));
stats.on('draw', () => this.redraw());
this.screen.key(['escape', 'q', 'C-c', 'enter'], onExit);
this.screen.render();
Expand Down

0 comments on commit eed568d

Please sign in to comment.