Simplify getHost by using the URL constructor
This patch removes the dependency on a dynamically-generated anchor element just to get the origin of a given string representing a URL. Change-Id: I3fdc9416da768ca44f168622538af191093cd804 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2535051Reviewed-by:Henrik Grunell <grunell@chromium.org> Commit-Queue: Mathias Bynens <mathias@chromium.org> Cr-Commit-Position: refs/heads/master@{#827743}
Showing
Please register or sign in to comment