Bug 1361541 - Fix warning messages in dev mode. r=Honza

MozReview-Commit-ID: KrndGb2zQuD

--HG--
extra : rebase_source : 8aa1368690b8263bdafabaf1d2bafc831c2b7696
This commit is contained in:
Nicolas Chevobbe 2017-06-16 14:48:31 +02:00
Родитель fdc91d2779
Коммит 1ff213f913
2 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -37,8 +37,8 @@ const MessageContainer = createClass({
indent: PropTypes.number.isRequired,
tableData: PropTypes.object,
timestampsVisible: PropTypes.bool.isRequired,
repeat: PropTypes.object,
networkMessageUpdate: PropTypes.object.isRequired,
repeat: PropTypes.number,
networkMessageUpdate: PropTypes.object,
},
getDefaultProps: function () {

Просмотреть файл

@ -227,6 +227,8 @@ const Message = createClass({
}, `[${l10n.getStr("webConsoleMoreInfoLabel")}]`);
}
const bodyElements = Array.isArray(messageBody) ? messageBody : [messageBody];
return dom.div({
className: topLevelClasses.join(" "),
onContextMenu: this.onContextMenu,
@ -243,7 +245,7 @@ const Message = createClass({
// Add whitespaces for formatting when copying to the clipboard.
timestampEl ? " " : null,
dom.span({ className: "message-body devtools-monospace" },
messageBody,
...bodyElements,
learnMore
),
repeat ? " " : null,