You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for taking this up! I agree this function is probably badly named. That said, we probably can not change the behavior at this point due to several other libraries depending on this. Right now this returns the full protocol+domain to be used in browser apis (like window.postMessage()) which expect both.
Hi, I noticed that the
getDomainFromUrl
does not have unit tests and from my preliminary testing is not behaving as expected.e.g on inputting
https://www.google.com/
the returned value should begoogle.com
but it in fact returnshttps://www.google.com
.I'd like to open this issue to start working on a PR that can reference this issue.
The text was updated successfully, but these errors were encountered: