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:
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;
}