Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2023-05-12 11:21:25 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2023-05-12 11:21:25 +0300
commit5c8218d0466d4de465207cce5978408b79d3e624 (patch)
treee2db594054628da399257ced7fa659a20749f430 /content/frontend/default/environment.js
parentc12e5ccb9e1c0e16f8ad8564c6404d690782cf7d (diff)
parent8b2d7b463dc4eb31d71d41a4d52e5c9704904e34 (diff)
Merge branch '1633-asset-pathfix-backport-158' into '15.8'
Backport version path fixes to 15.8 See merge request https://gitlab.com/gitlab-org/gitlab-docs/-/merge_requests/3834 Merged-by: Achilleas Pipinellis <axil@gitlab.com> Approved-by: Achilleas Pipinellis <axil@gitlab.com> Co-authored-by: Sarah German <sgerman@gitlab.com>
Diffstat (limited to 'content/frontend/default/environment.js')
-rw-r--r--content/frontend/default/environment.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/content/frontend/default/environment.js b/content/frontend/default/environment.js
index e09a83c4..e403cdfc 100644
--- a/content/frontend/default/environment.js
+++ b/content/frontend/default/environment.js
@@ -22,13 +22,13 @@ export const GlHosts = [
];
export function isGitLabHosted() {
- return GlHosts.some((e) => window.location.host.includes(e.host));
+ return GlHosts.some((e) => window.location.hostname.includes(e.host));
}
export function isArchivesSite() {
- return window.location.host === GlHosts.find((x) => x.environment === 'archives').host;
+ return window.location.hostname === GlHosts.find((x) => x.environment === 'archives').host;
}
export function isProduction() {
- return window.location.host === GlHosts.find((x) => x.environment === 'production').host;
+ return window.location.hostname === GlHosts.find((x) => x.environment === 'production').host;
}