diff --git a/static/index.html b/static/index.html index 23334b7..40ea94a 100644 --- a/static/index.html +++ b/static/index.html @@ -97,7 +97,7 @@ function load(interval) { let apiKey = document.getElementById('apikey-input').value - fetch(`api/summary?interval=${interval}&live=true`, { + fetch(`${window.location.href}/api/summary?interval=${interval}&live=true`, { method: 'GET', headers: { 'Accept': 'application/json',