From b447b0c62d96780ea29702f344f06c7b7e8b818b Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 13 May 2020 18:44:06 +0100 Subject: [PATCH] Use nodeName which is specced --- src/vector/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vector/index.ts b/src/vector/index.ts index 43f747a221..4508494e62 100644 --- a/src/vector/index.ts +++ b/src/vector/index.ts @@ -114,7 +114,7 @@ function monkeyPatchForReact() { const [ancestor, depth] = findAncestorWithClass(args[0]); console.log( "Caught exception from removeChild, removing node of type " + - args[0].type + ". Closest ancestor with class is a " + ancestor.type + + args[0].type + ". Closest ancestor with class is a " + ancestor.nodeName + " with class " + ancestor.className + " " + depth + " levels above. " + "See https://github.com/vector-im/riot-web/issues/13557", e, ); @@ -129,7 +129,7 @@ function monkeyPatchForReact() { } catch (e) { const [ancestor, depth] = findAncestorWithClass(args[0]); console.log( - "Caught exception from removeChild, removing " + args[0].type + + "Caught exception from removeChild, removing " + args[0].nodeName + ". Closest ancestor with class is a " + ancestor.type + " with class " + ancestor.class + " " + depth + " levels above. " + "See https://github.com/vector-im/riot-web/issues/13557", e,