Oddbean new post about | logout
  @brugeman @PABLOF7z what is the best practice for parsing NIP-46 bunker strings on the web? I just noticed that JavaScript's URL API is not usable, as Safari and Chrome will create wildly different results. 
 I use pubkey=url.hostname || url.pathname.split('//')[1] or some such to make it cross-browser.