February 1, 2016 at 5:44 am #237567
Modernizr is a separate plugin that you’d need to add for the code to work, otherwise that line should be replaced with the one I mentioned.
if (history.pushState !== 'undefined')
Should work for the rest. A live example of your efforts would otherwise be needed at this point to do any debugging…