earthstar-project / earthstar

Storage for private, distributed, offline-first applications.
https://earthstar-project.org
GNU Lesser General Public License v3.0
623 stars 18 forks source link

Fix invitation parsing in Firefox / Chrome #321

Closed sgwilym closed 1 year ago

sgwilym commented 1 year ago

What's the problem you solved?

It turns out Firefox and Chrome do not parse invitation URLs the same way Deno and Safari do. Boo.

What solution are you recommending?

Check if the hostname was parsed successfully, if not, it was parsed into the pathname and can be reconstructed from there.