diff --git a/src/js/lib/dom.js b/src/js/lib/dom.js index 8d6b4fa..40f56fd 100644 --- a/src/js/lib/dom.js +++ b/src/js/lib/dom.js @@ -70,6 +70,8 @@ exports.remove = function (element) { if (typeof element.remove !== 'undefined') { element.remove(); } else { - element.parentNode && element.parentNode.removeChild(element); + if (element.parentNode) { + element.parentNode.removeChild(element); + } } };