parent
8952d760d0
commit
ef7231fe03
2 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ class Console extends React.Component {
|
||||||
</div>
|
</div>
|
||||||
<div ref={(element) => { this.consoleMessages = element; }} className="preview-console__messages">
|
<div ref={(element) => { this.consoleMessages = element; }} className="preview-console__messages">
|
||||||
{this.props.consoleEvents.map((consoleEvent) => {
|
{this.props.consoleEvents.map((consoleEvent) => {
|
||||||
const { method, times } = consoleEvent;
|
const { data: args, method, times } = consoleEvent;
|
||||||
const { theme } = this.props;
|
const { theme } = this.props;
|
||||||
return (
|
return (
|
||||||
<div key={consoleEvent.id} className={`preview-console__message preview-console__message--${method}`}>
|
<div key={consoleEvent.id} className={`preview-console__message preview-console__message--${method}`}>
|
||||||
|
|
|
@ -81,7 +81,7 @@ class PreviewFrame extends React.Component {
|
||||||
|
|
||||||
handleConsoleEvent(messageEvent) {
|
handleConsoleEvent(messageEvent) {
|
||||||
if (Array.isArray(messageEvent.data)) {
|
if (Array.isArray(messageEvent.data)) {
|
||||||
const decodedMessages = messageEvent.data.map(message => Decode(message.log));
|
let decodedMessages = messageEvent.data.map(message => Decode(message.log));
|
||||||
|
|
||||||
decodedMessages.every((message, index, arr) => {
|
decodedMessages.every((message, index, arr) => {
|
||||||
const { data: args } = message;
|
const { data: args } = message;
|
||||||
|
|
Loading…
Reference in a new issue