mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-09-21 23:47:35 +03:00
fixed empty spur
This commit is contained in:
parent
fb7a829cff
commit
b5679d31ed
@ -275,6 +275,7 @@ window.urb.util = {
|
||||
},
|
||||
basepath: function(spur, pathname){
|
||||
spur = spur || ''
|
||||
if(spur === '/') spur = ''
|
||||
pathname = pathname || window.location.pathname
|
||||
if(pathname[0] == '/') pathname = pathname.slice(1)
|
||||
pathname = pathname.split("/")
|
||||
|
Loading…
Reference in New Issue
Block a user