Fixed bug from issue #5191

This commit is contained in:
MerganThePirate 2020-06-15 08:25:26 -07:00 committed by GitHub
parent 000beb2bd0
commit d60c9a33d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ var AddToDOM = function (element, parent)
target = parent;
}
}
else if (element.parentElement)
else if (element.parentElement || parent === null)
{
return element;
}