undo forced offline mode

This commit is contained in:
Bruno Windels 2021-06-11 11:05:34 +02:00
parent 81a721f880
commit 6bdbbee83e

View file

@ -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) {