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) {
|
if (publicUrl) {
|
||||||
return publicUrl;
|
return publicUrl;
|
||||||
}
|
}
|
||||||
|
return getUrlObject(req).toString();
|
||||||
const urlObject = getUrlObject(req);
|
|
||||||
return urlObject.toString();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getTileUrls = (req, domains, path, format, publicUrl, aliases) => {
|
export const getTileUrls = (req, domains, path, format, publicUrl, aliases) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue