aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/components/RepositoryHeader.vue
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-05-24 13:30:42 +0200
committerHampusM <hampus@hampusmat.com>2021-05-24 13:30:42 +0200
commit0c23beadccfda6c6e2d6380244fbe49f5bfee139 (patch)
tree6e0d8654a0097427808d2f5deba530b6a9e8294d /src/frontend/components/RepositoryHeader.vue
parent6ae79f6bd3f7eaeae0d707889ce8d2c1c32c3ba9 (diff)
API calls uses window.location
Diffstat (limited to 'src/frontend/components/RepositoryHeader.vue')
-rw-r--r--src/frontend/components/RepositoryHeader.vue2
1 files changed, 1 insertions, 1 deletions
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) =>
{