mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-22 21:38:00 -05:00
Skip pushState tests with 'file:' protocol.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user