mirror of
https://github.com/element-hq/element-web
synced 2024-11-29 04:48:50 +03:00
Attempt to fix decoder ring for relative hosted riots
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
bf174e3f0f
commit
2419db5195
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ function bundleSubject(bundle) {
|
||||||
const fetcher = new rxjs.BehaviorSubject(Pending.of());
|
const fetcher = new rxjs.BehaviorSubject(Pending.of());
|
||||||
bundleCache.set(bundle, fetcher);
|
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! */
|
res.body.cancel(); /* Bail on the download immediately - it could be big! */
|
||||||
const status = res.ok;
|
const status = res.ok;
|
||||||
if (status) {
|
if (status) {
|
||||||
|
@ -211,7 +211,7 @@ function BundlePicker() {
|
||||||
setFileFetchStatus(None);
|
setFileFetchStatus(None);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const observable = fetchAsSubject(`/bundles/${bundle}/${file}.map`)
|
const observable = fetchAsSubject(`../bundles/${bundle}/${file}.map`)
|
||||||
.pipe(
|
.pipe(
|
||||||
rxjs.operators.map((fetchStatus) => fetchStatus.flatMap(value => {
|
rxjs.operators.map((fetchStatus) => fetchStatus.flatMap(value => {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue