Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CodeGen
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Coscine
backend
scripts
CodeGen
Merge requests
!15
New: Configurable api hostname
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
New: Configurable api hostname
Issue/xxxx-configurableApiHostname
into
main
Overview
0
Commits
2
Pipelines
1
Changes
1
Merged
Benedikt Heinrichs
requested to merge
Issue/xxxx-configurableApiHostname
into
main
1 year ago
Overview
0
Commits
2
Pipelines
1
Changes
1
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
0167e385
2 commits,
1 year ago
1 file
+
5
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/CodeGen/CodeGenerator/CoscineCodeGenerator.cs
+
5
−
1
View file @ 0167e385
Edit in single-file editor
Open in Web IDE
Show full file
@@ -90,6 +90,10 @@ if (typeof window !== 'undefined') {
}
const getHostName = () => {
const localStorageHostName = typeof window !== 'undefined' ? localStorage.getItem('coscine.api.hostname') : null;
if (localStorageHostName) {
return localStorageHostName;
}
let hostName = typeof window !== 'undefined' ? window.location.hostname : 'coscine.rwth-aachen.de';
if (hostName.indexOf(':') !== -1) {
if (hostName.indexOf('https://') !== -1) {
@@ -103,4 +107,4 @@ const getHostName = () => {
"
;
return
Task
.
FromResult
(
combinationFileText
);
}
}
\ No newline at end of file
}
Loading