I came across an issue in my website which I have not yet been able to figure out. I am not very familiar with js.
Below is the code from the js file that is throwing this error.
var dtGlobals = {};
(dtGlobals.isMobile = /(Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|windows phone)/.test(navigator.userAgent)),
(dtGlobals.isAndroid = /(Android)/.test(navigator.userAgent)),
(dtGlobals.isiOS = /(iPhone|iPod|iPad)/.test(navigator.userAgent)),
(dtGlobals.isiPhone = /(iPhone|iPod)/.test(navigator.userAgent)),
(dtGlobals.isiPad = /(iPad)/.test(navigator.userAgent)),
(dtGlobals.isBuggy = navigator.userAgent.match(/AppleWebKit/) && "undefined" == typeof window.ontouchstart && !navigator.userAgent.match(/Chrome/)),
(dtGlobals.winScrollTop = 0),
(window.onscroll = function () {
dtGlobals.winScrollTop = void 0 !== window.pageYOffset ? window.pageYOffset : (document.documentElement || document.body.parentNode || document.body).scrollTop;
}),
(dtGlobals.isWindowsPhone = navigator.userAgent.match(/IEMobile/i)),
(dtGlobals.customColor = "red"),
dtGlobals.isMobile ? (document.documentElement.className += " mobile-true") : (document.documentElement.className += " mobile-false"),
(dtGlobals.logoURL = !1),
(dtGlobals.logoH = !1),
(dtGlobals.logoW = !1),
jQuery(document).ready(function ($) {
var e = $(document),
t = $(window),
n = $("html"),
o = $("body");
if (
(dtGlobals.isiOS ? n.addClass("is-iOS") : n.addClass("not-iOS"),
!$.browser.webkit || dtGlobals.isMobile ? o.addClass("not-webkit").removeClass("is-webkit") : o.removeClass("not-webkit").addClass("is-webkit"),
jQuery.browser.msie && 10 == jQuery.browser.version && o.addClass("ie-10"),
($.browser.safari = $.browser.webkit && !/chrome/.test(navigator.userAgent.toLowerCase())),
$.browser.safari && o.addClass("is-safari"),
dtGlobals.isWindowsPhone && o.addClass("ie-mobile").addClass("windows-phone"),
dtGlobals.isMobile || o.addClass("no-mobile"),
dtGlobals.isiPhone && o.addClass("is-iphone"),
!$("html").hasClass("old-ie"))
) {
(dtGlobals.isPhone = !1), (dtGlobals.isTablet = !1), (dtGlobals.isDesktop = !1);
var r = window.getComputedStyle(document.body, ":after").getPropertyValue("content");
-1 != r.indexOf("phone") && dtGlobals.isMobile ? (dtGlobals.isPhone = !0) : -1 != r.indexOf("tablet") && dtGlobals.isMobile ? (dtGlobals.isTablet = !0) : (dtGlobals.isDesktop = !0);
}
$.browser.msie && $("html").removeClass("csstransforms3d");
var i;
dtGlobals.isMobile && !dtGlobals.isWindowsPhone
? $(window).bind("orientationchange", function (e) {
clearTimeout(i),
(i = setTimeout(function () {
$(window).trigger("debouncedresize");
}, 200));
})
: $(window).on("resize", function () {
clearTimeout(i),
(i = setTimeout(function () {
$(window).trigger("debouncedresize");
}, 200));
});
});