Simplify getPublicUrl function
Co-authored-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
This commit is contained in:
parent
83225aba6e
commit
504e1764f3
1 changed files with 1 additions and 3 deletions
|
|
@ -22,9 +22,7 @@ export const getPublicUrl = (publicUrl, req) => {
|
|||
if (publicUrl) {
|
||||
return publicUrl;
|
||||
}
|
||||
|
||||
const urlObject = getUrlObject(req);
|
||||
return urlObject.toString();
|
||||
return getUrlObject(req).toString();
|
||||
};
|
||||
|
||||
export const getTileUrls = (req, domains, path, format, publicUrl, aliases) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue