diff --git a/Source/History.js b/Source/History.js index b89c71c..9f7d957 100644 --- a/Source/History.js +++ b/Source/History.js @@ -21,7 +21,7 @@ provides: History var events = Element.NativeEvents, location = window.location, cleanURL = function(url){ - if (url.match(/^https?:\/\//)) url = '/' + url.split('/').slice(3).join('/'); + if (url && url.match(/^https?:\/\//)) url = '/' + url.split('/').slice(3).join('/'); return url; }, base = cleanURL(location.href),