aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/backends
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/js/backends')
-rw-r--r--web/src/js/backends/static.js2
-rw-r--r--web/src/js/backends/websocket.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/web/src/js/backends/static.js b/web/src/js/backends/static.js
index 7e87a5ed..d2c8d3fe 100644
--- a/web/src/js/backends/static.js
+++ b/web/src/js/backends/static.js
@@ -16,7 +16,7 @@ export default class StaticBackend {
}
fetchData(resource) {
- fetchApi(`/${resource}`)
+ fetchApi(`./${resource}`)
.then(res => res.json())
.then(json => {
this.receive(resource, json)
diff --git a/web/src/js/backends/websocket.js b/web/src/js/backends/websocket.js
index d7e13bb2..08136617 100644
--- a/web/src/js/backends/websocket.js
+++ b/web/src/js/backends/websocket.js
@@ -34,7 +34,7 @@ export default class WebsocketBackend {
fetchData(resource) {
let queue = []
this.activeFetches[resource] = queue
- fetchApi(`/${resource}`)
+ fetchApi(`./${resource}`)
.then(res => res.json())
.then(json => {
// Make sure that we are not superseded yet by the server sending a RESET.