From 9e6b683e78bcb2c9edb9fe02d574514be5934227 Mon Sep 17 00:00:00 2001 From: Manuel Roth Date: Tue, 31 Jan 2023 10:54:19 +0100 Subject: [PATCH] Use urlObject directly Co-authored-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 70542cc..4bf7726 100644 --- a/src/utils.js +++ b/src/utils.js @@ -50,7 +50,7 @@ export const getTileUrls = (req, domains, path, format, publicUrl, aliases) => { domains = newDomains; } if (!domains || domains.length == 0) { - domains = [host]; + domains = [urlObject.host]; } const queryParams = [];