From 5f27de19aa00e3a7d4e1f4b93bb9340d65dbdff5 Mon Sep 17 00:00:00 2001 From: erohtar Date: Mon, 12 Dec 2022 18:40:56 +0530 Subject: [PATCH] Update worker.js --- www/include/worker.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/include/worker.js b/www/include/worker.js index 02a21bc..35ed4a8 100644 --- a/www/include/worker.js +++ b/www/include/worker.js @@ -168,9 +168,11 @@ async function checkOnline(thisUrl, thisId) { //reads all tiles from settings and sets their respective indicators to green const options = { method: 'GET', - mode: 'no-cors' + mode: 'no-cors', + connection: 'close' }; + const response = await fetch(thisUrl,options); if (response.status = 200) { thisId.className = thisId.className.replace(/dot(?!\S)/g, 'dot dot-green');