How Seamless Omnichannel Payments Drive Sales function checkWidth() { var screenWidth = window.innerWidth; var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); if (!isMobile && screenWidth < 800) { location.reload(); } } window.addEventListener("resize", checkWidth);