зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1361541 - Fix warning messages in dev mode. r=Honza
MozReview-Commit-ID: KrndGb2zQuD --HG-- extra : rebase_source : 8aa1368690b8263bdafabaf1d2bafc831c2b7696
This commit is contained in:
Родитель
fdc91d2779
Коммит
1ff213f913
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче