forked from mystiq/hydrogen-web
undo forced offline mode
This commit is contained in:
parent
81a721f880
commit
6bdbbee83e
1 changed files with 0 additions and 3 deletions
|
@ -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 a new issue