From 5a3fcbd2a7228f5a3665a663090660ac8aba3df7 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 25 Aug 2020 09:49:34 +0200 Subject: app.js: Request screenings by relative URL. Allows us to run the app under a suburi, instead of having a separate domain for it. --- public/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() } -- cgit v1.2.3