detecting-adblock icon indicating copy to clipboard operation
detecting-adblock copied to clipboard

test.remove() breaks older IE

Open JanST123 opened this issue 9 years ago • 0 comments

Thanks for that piece of code. I just want to leave a hint that the "rest.remove()" line will break JavaScript in Internet Explorer < Edge as this method is undefined.

You should replace it with

      if (test.parentNode) {
        test.parentNode.removeChild(test);
      }

JanST123 avatar Aug 12 '16 11:08 JanST123