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 6 years, 10 months ago by
XAce90.
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.