Error reporting using HotJar

Hi guys
I’m getting a couple of errors when I implement a trial version of Hotjar on https://queenstreetmedical.com.au
One concerns an iframe, so that’s out of our control.
The other is this


and I found it here

How should I remove it?

Hello @philysgdy,

Thanks for writing in!

Your JS code is throwing an error because it could not find the element bearing the class christmas23 .

/* <![CDATA[ */
jQuery(function($) {
  $(window).on('scroll', function() {
    if ($(document).scrollTop() >= $(document).height() / 9) {
      $('.christmas23')[0].click();
      $(window).off('scroll');
    }
  });
})
/* ]]> */

You can update it with a fix element targeting. For example;

jQuery(function($) {
  $(window).on('scroll', function() {
    if ($(document).scrollTop() >= $(document).height() / 9) {
      var $christmasElement = $('.christmas23');
      if ($christmasElement.length > 0) {
        $christmasElement[0].click();
        $(window).off('scroll');
      }
    }
  });
});

Be advised that custom Coding is beyond the scope of our support.

Kindly let us know how it goes.