Bugfix: container.remove() is not a function

This commit is contained in:
djmaze 2020-10-14 19:18:10 +02:00
parent 3db8befbba
commit a177081224

View file

@ -494,7 +494,8 @@ const
parent.childNodes.length === 1 ) {
container = parent;
}
container.remove();
// container.remove(); // not a function?
container.parentNode && container.parentNode.removeChild( container );
offset = block.childNodes.length;