Skip to content

Commit

Permalink
Add temporary workaround for browser hangup
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsmirnov committed Feb 26, 2019
1 parent d5f268a commit 00b2424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/scripts/ui/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Menu.prototype._initializeTerminal = function () {
'report': '#1a9cb0',
};
const onLogMessage = function (e) {
const msg = e.message.replace(/]/g, '\\]');
const msg = e.message.replace('[', '(').replace(']', ')'); // temp workaround for https://github.com/jcubic/jquery.terminal/issues/470
term.echo(`[[b;${colors[e.level] || '#666'};]${msg}]`);
};
self._viewer.logger.addEventListener('message', onLogMessage);
Expand Down

0 comments on commit 00b2424

Please sign in to comment.