fix: accidentally html removed

This commit is contained in:
wanhose 2020-05-25 23:01:59 +02:00
parent 76bb62ed22
commit 9c9ac4f4ab

View File

@ -26,7 +26,7 @@ const doMagic = () => {
// Remove irritating all removable elements
removable.forEach(element => {
if (element.tagName !== 'body') {
if (element.tagName !== 'body' && element.tagName !== 'html') {
const exists =
document.getElementById(element.id)
|| document.getElementsByName(element.name).length > 0