According to the MDN reference page, includes is not supported on Internet Explorer. The simplest alternative is to use indexOf, like this:
if(window.location.hash.indexOf("?") >= 0) {
...
}
According to the MDN reference page, includes is not supported on Internet Explorer. The simplest alternative is to use indexOf, like this:
if(window.location.hash.indexOf("?") >= 0) {
...
}