Skip to content

Commit

Permalink
Maybe it now works on Firefox ESR?
Browse files Browse the repository at this point in the history
  • Loading branch information
WesSouza committed Dec 17, 2024
1 parent 8a0050e commit d5a491a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Wes95/utils/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ export const createURL = (urlString: string): URLObject => {
throw new Error('Unable to infer hostname and pathname from pathname');
}

return {
...urlToObject(url),
hostname: matches.groups.hostname,
pathname: matches.groups.pathname,
};
const urlObject = urlToObject(url);
urlObject.hostname = matches.groups.hostname;
urlObject.pathname = matches.groups.pathname;

return urlObject;
};

export function getRealPublicURL(path: string | undefined) {
Expand Down

0 comments on commit d5a491a

Please sign in to comment.