mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-11 04:48:00 +03:00
update urb.util.basename
This commit is contained in:
parent
8151b0279e
commit
b3ea66fab3
@ -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 = ""
|
||||
|
Loading…
Reference in New Issue
Block a user