Bug 1546277 - Remove the className for the console.assert element. r=nchevobbe.

The className was making the color purple, although we want it to be red.
Removing the className makes it red.

Differential Revision: https://phabricator.services.mozilla.com/D28616

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Wizard 2019-04-25 09:17:48 +00:00
Родитель 240b24fbe1
Коммит 150d7412e1
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -82,7 +82,7 @@ function ConsoleApiCall(props) {
]; ];
} else if (type === "assert") { } else if (type === "assert") {
const reps = formatReps(messageBodyConfig); const reps = formatReps(messageBodyConfig);
messageBody = dom.span({ className: "cm-variable" }, "Assertion failed: ", reps); messageBody = dom.span({}, "Assertion failed: ", reps);
} else if (type === "table") { } else if (type === "table") {
// TODO: Chrome does not output anything, see if we want to keep this // TODO: Chrome does not output anything, see if we want to keep this
messageBody = dom.span({className: "cm-variable"}, "console.table()"); messageBody = dom.span({className: "cm-variable"}, "console.table()");