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.>
This question and its answers led me to my own solution (with help from SO), though some say you shouldn't tamper with native prototypes:
// IE does not support .includes() so I'm making my own:
String.prototype.doesInclude=function(needle){
return this.substring(needle) != -1;
}
Then I just replaced all .includes()
with .doesInclude()
and my problem was solved.