mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
undo forced offline mode
This commit is contained in:
parent
81a721f880
commit
6bdbbee83e
@ -103,8 +103,6 @@ export function createFetchRequest(createTimeout, serviceWorkerHandler) {
|
|||||||
}
|
}
|
||||||
options.headers = fetchHeaders;
|
options.headers = fetchHeaders;
|
||||||
}
|
}
|
||||||
const promise = Promise.reject(new ConnectionError());
|
|
||||||
/*
|
|
||||||
const promise = fetch(url, options).then(async response => {
|
const promise = fetch(url, options).then(async response => {
|
||||||
const {status} = response;
|
const {status} = response;
|
||||||
let body;
|
let body;
|
||||||
@ -137,7 +135,6 @@ export function createFetchRequest(createTimeout, serviceWorkerHandler) {
|
|||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
});
|
});
|
||||||
*/
|
|
||||||
const result = new RequestResult(promise, controller);
|
const result = new RequestResult(promise, controller);
|
||||||
|
|
||||||
if (timeout) {
|
if (timeout) {
|
||||||
|
Loading…
Reference in New Issue
Block a user