diff --git a/test/router.js b/test/router.js index ec360ffb..decd9438 100644 --- a/test/router.js +++ b/test/router.js @@ -4,7 +4,9 @@ $(document).ready(function() { var lastRoute = null; var lastArgs = []; - var pushState = window.history && window.history.pushState; + var pushState = window.location.protocol !== 'file:' && + window.history && + window.history.pushState; var pathname = window.location.pathname; function onRoute(router, route, args) {