Skip pushState tests with 'file:' protocol.

This commit is contained in:
Brad Dunbar
2012-06-04 12:44:16 -04:00
parent ba980801ce
commit 76eeafcc3a

View File

@@ -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) {