aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-08-25 09:49:34 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-08-25 09:49:34 +0200
commit5a3fcbd2a7228f5a3665a663090660ac8aba3df7 (patch)
tree001e1ef3455d7ae462c7e9da55657ac6e641c48c
parent60cf0af72dba62f89f4c373ffc1f5e664d84bea0 (diff)
downloadramaskrik-social-5a3fcbd2a7228f5a3665a663090660ac8aba3df7.tar.gz
ramaskrik-social-5a3fcbd2a7228f5a3665a663090660ac8aba3df7.tar.bz2
ramaskrik-social-5a3fcbd2a7228f5a3665a663090660ac8aba3df7.zip
app.js: Request screenings by relative URL.
Allows us to run the app under a suburi, instead of having a separate domain for it.
-rw-r--r--public/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/app.js b/public/js/app.js
index d661b52..826eb42 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -19,7 +19,7 @@
function load_screenings(data_done) {
let req = new XMLHttpRequest()
req.addEventListener("load", data_done)
- req.open("GET", "/screenings")
+ req.open("GET", "screenings")
req.responseType = "json"
req.send()
}