Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #10 from RiZKiT/patch-1

Check for url before url.match
  • Loading branch information...
commit be75822221e3a725c30ddfbe5d48bf4c0cace3bb 2 parents ac653be + 7798156
@cpojer authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Source/History.js
View
2  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),

0 comments on commit be75822

Please sign in to comment.
Something went wrong with that request. Please try again.