update urb.util.basename

This commit is contained in:
Anton Dyudin 2015-12-07 13:36:13 -08:00
parent 8151b0279e
commit b3ea66fab3

View File

@ -281,6 +281,9 @@ window.urb.util = {
if(spur === '/') spur = ''
pathname = pathname || window.location.pathname
if(pathname[0] == '/') pathname = pathname.slice(1)
if(pathname[0] != '~' && pathname[0] != '='){
return spur
}
pathname = pathname.split("/")
var pref, pred, prec, base = ""