I am checking the URL to see if it contains or includes a ? in it to control the hash pop state in the window. All other browsers aren’t having an issue, only IE.>
?
According to the MDN reference page, includes is not supported on Internet Explorer. The simplest alternative is to use indexOf, like this:
includes
indexOf
if(window.location.hash.indexOf("?") >= 0) { ... }