From 6bdbbee83effb734ca9ff2e110d4607e85f35f43 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 11 Jun 2021 11:05:34 +0200 Subject: [PATCH] undo forced offline mode --- src/platform/web/dom/request/fetch.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/platform/web/dom/request/fetch.js b/src/platform/web/dom/request/fetch.js index e75bb4be..66f1a148 100644 --- a/src/platform/web/dom/request/fetch.js +++ b/src/platform/web/dom/request/fetch.js @@ -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) {