• Resolved 102256je

    (@102256je)


    Works great on all web browsers except on Internet Explorer
    caspers-leave-notice.js
    line 71: Object doesn’t support property or method ‘closest’

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author XAce90

    (@xace90)

    Good find, and thanks for reporting this. I’ll put out an update this week with the fix, but in the meantime here’s the solution:

    Go to Plugins -> Editor. At the top right, select Casper’s Leave Notice from the dropdown. In the sidebar of plugin files, go to caspers-leave-notice.js. On line 71, you’ll see the following:

    var url = (e.target.hasAttribute('href')) ? e.target.getAttribute('href') : e.target.closest('[href]').getAttribute('href');

    Replace that with

    var url = (e.target.hasAttribute('href')) ? e.target.getAttribute('href') : $(this).closest('[href]').attr('href');

    Thanks again for reporting this issue. Keep an eye out for 1.2.3 coming out shortly.

    • This reply was modified 5 years, 8 months ago by XAce90.
    Thread Starter 102256je

    (@102256je)

    Thanks, just tried it on our test/preview site and replacing var url = (e.target.hasAttribute('href')) ? e.target.getAttribute('href') : e.target.closest('[href]').getAttribute('href'); with var url = (e.target.hasAttribute('href')) ? e.target.getAttribute('href') : $(this).closest('[href]').attr('href'); did the trick. Appreciate your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘IE11 plugin error’ is closed to new replies.