more s/type/nodeName/

This commit is contained in:
David Baker 2020-05-13 19:33:37 +01:00
parent b447b0c62d
commit 8c09da4294

View file

@ -114,7 +114,7 @@ function monkeyPatchForReact() {
const [ancestor, depth] = findAncestorWithClass(args[0]); const [ancestor, depth] = findAncestorWithClass(args[0]);
console.log( console.log(
"Caught exception from removeChild, removing node of type " + "Caught exception from removeChild, removing node of type " +
args[0].type + ". Closest ancestor with class is a " + ancestor.nodeName + args[0].nodeName + ". Closest ancestor with class is a " + ancestor.nodeName +
" with class " + ancestor.className + " " + depth + " levels above. " + " with class " + ancestor.className + " " + depth + " levels above. " +
"See https://github.com/vector-im/riot-web/issues/13557", e, "See https://github.com/vector-im/riot-web/issues/13557", e,
); );
@ -130,7 +130,7 @@ function monkeyPatchForReact() {
const [ancestor, depth] = findAncestorWithClass(args[0]); const [ancestor, depth] = findAncestorWithClass(args[0]);
console.log( console.log(
"Caught exception from removeChild, removing " + args[0].nodeName + "Caught exception from removeChild, removing " + args[0].nodeName +
". Closest ancestor with class is a " + ancestor.type + ". Closest ancestor with class is a " + ancestor.nodeName +
" with class " + ancestor.class + " " + depth + " levels above. " + " with class " + ancestor.class + " " + depth + " levels above. " +
"See https://github.com/vector-im/riot-web/issues/13557", e, "See https://github.com/vector-im/riot-web/issues/13557", e,
); );