recover SSO code from history
"revert eyrelearning" didn't quite get everything
document.location = url
}
urb.redir = function(ship){
+ if(ship){
var location = new URL(document.location)
location.pathname = location.pathname.replace(/^\/~~|\/~\/as\/any/,'/~/as/~'+ship)
urb.redirTo(location)
}
+ else urb.redirTo(
+ document.location.hash.match(/#[^?]+/)[0].slice(1) +
+ document.location.pathname.replace(
+ /^\/~\/am\/[^/]+/,
+ '/~/as/~' + urb.ship) +
+ document.location.search
+ )
+ }
if(urb.foreign && urb.auth.indexOf(urb.ship) !== -1){
req("/~/auth.json?PUT",
{ship:urb.ship,code:null},
(~(has in aut.u.cyz) our)
::
++ ses-ya |=(ses/hole ~(. ya ses (~(got by wup) ses)))
- ++ our-host `hart`[& ~ %& /org/urbit/(rsh 3 1 (scot %p our))]
- :: [| [~ 8.443] `/localhost] :: XX testing
+ ++ our-host
+ ^- hart
+ :: XX get actual -F flag value
+ ?: [fake=|] [| [~ 8.443] &+/localhost]
+ `hart`[& ~ %& /org/urbit/(rsh 3 1 (scot %p our))]
::
++ eyre-them
|= {tea/whir vax/vase}
