diff options
Diffstat (limited to 'src/frontend/views/RepositoryCommit.vue')
-rw-r--r-- | src/frontend/views/RepositoryCommit.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frontend/views/RepositoryCommit.vue b/src/frontend/views/RepositoryCommit.vue index 283ed69..9554de7 100644 --- a/src/frontend/views/RepositoryCommit.vue +++ b/src/frontend/views/RepositoryCommit.vue @@ -80,7 +80,7 @@ export default { watch(() => { - fetch(`http://localhost:1337/api/v1/repos/${props.repository}/log/${props.commit}`) + fetch(`${window.location.protocol}//${window.location.host}/api/v1/repos/${props.repository}/log/${props.commit}`) .then((res) => res.json()) .then((data) => { |