diff options
Diffstat (limited to 'src/frontend/components')
-rw-r--r-- | src/frontend/components/HomeHeader.vue | 2 | ||||
-rw-r--r-- | src/frontend/components/RepositoryHeader.vue | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/components/HomeHeader.vue b/src/frontend/components/HomeHeader.vue index f0366a3..8c27c93 100644 --- a/src/frontend/components/HomeHeader.vue +++ b/src/frontend/components/HomeHeader.vue @@ -22,7 +22,7 @@ export default { watch(() => { - fetch(`http://localhost:1337/api/v1/info`) + fetch(`${window.location.protocol}//${window.location.host}/api/v1/info`) .then((res) => res.json()) .then((data) => { diff --git a/src/frontend/components/RepositoryHeader.vue b/src/frontend/components/RepositoryHeader.vue index b0db4f9..b074d15 100644 --- a/src/frontend/components/RepositoryHeader.vue +++ b/src/frontend/components/RepositoryHeader.vue @@ -33,7 +33,7 @@ export default { watch(() => { - fetch(`http://localhost:1337/api/v1/repos/${props.repository}`) + fetch(`${window.location.protocol}//${window.location.host}/api/v1/repos/${props.repository}`) .then((res) => res.json()) .then((data) => { |