Bug fixes
This commit is contained in:
@@ -31,7 +31,7 @@ module.exports = function(el) {
|
||||
// execute
|
||||
parent.appendChild(script)
|
||||
// avoid pollution only in head or body tags
|
||||
if (["head", "body"].indexOf(parent.tagName.toLowerCase()) > 0) {
|
||||
if (parent instanceof HTMLHeadElement || parent instanceof HTMLBodyElement) {
|
||||
parent.removeChild(script)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user