From 2419db5195274643b3e0afbcde63ac54e0855eca Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 11 Jun 2020 01:24:26 +0100 Subject: [PATCH] Attempt to fix decoder ring for relative hosted riots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- res/decoder-ring/decoder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/res/decoder-ring/decoder.js b/res/decoder-ring/decoder.js index 68c6bb066b..175073aafe 100644 --- a/res/decoder-ring/decoder.js +++ b/res/decoder-ring/decoder.js @@ -33,7 +33,7 @@ function bundleSubject(bundle) { const fetcher = new rxjs.BehaviorSubject(Pending.of()); bundleCache.set(bundle, fetcher); - fetch(`/bundles/${bundle}/bundle.js.map`).then((res) => { + fetch(`../bundles/${bundle}/bundle.js.map`).then((res) => { res.body.cancel(); /* Bail on the download immediately - it could be big! */ const status = res.ok; if (status) { @@ -211,7 +211,7 @@ function BundlePicker() { setFileFetchStatus(None); return; } - const observable = fetchAsSubject(`/bundles/${bundle}/${file}.map`) + const observable = fetchAsSubject(`../bundles/${bundle}/${file}.map`) .pipe( rxjs.operators.map((fetchStatus) => fetchStatus.flatMap(value => { try {