Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a={href:b.href,protocol:b.protocol,host:b.host,hostname:b.hostname,port:b.port,pathname:b.pathname,search:b.search,hash:b.hash,username:b.username,password:b.password};a.origin=a.protocol+"//"+a.host;a.pathname&&"/"==a.pathname[0]||(a.pathname="/"+a.pathname);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement