Skip to content

Commit be75822

Browse files
committed
Merge pull request #10 from RiZKiT/patch-1
Check for url before url.match
2 parents ac653be + 7798156 commit be75822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/History.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ provides: History
2121
var events = Element.NativeEvents,
2222
location = window.location,
2323
cleanURL = function(url){
24-
if (url.match(/^https?:\/\//)) url = '/' + url.split('/').slice(3).join('/');
24+
if (url && url.match(/^https?:\/\//)) url = '/' + url.split('/').slice(3).join('/');
2525
return url;
2626
},
2727
base = cleanURL(location.href),

0 commit comments

Comments
 (0)