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;
|
||||
}
|
||||
const promise = Promise.reject(new ConnectionError());
|
||||
/*
|
||||
const promise = fetch(url, options).then(async response => {
|
||||
const {status} = response;
|
||||
let body;
|
||||
@ -137,7 +135,6 @@ export function createFetchRequest(createTimeout, serviceWorkerHandler) {
|
||||
}
|
||||
throw err;
|
||||
});
|
||||
*/
|
||||
const result = new RequestResult(promise, controller);
|
||||
|
||||
if (timeout) {
|
||||
|
Loading…
Reference in New Issue
Block a user