I’ve implemented pushState/onPopState in a small web app I’ve created. The app now throws javascript errors in IE because IE doesn’t support these methods. Is there any way I can do a check like
if (method_exists(history.pushState)) {
history.pushState(blah, blah, blah);
}
So that IE will ignore this part of the app and not throw an error? Thanks.
Try this: