Skip to content

Commit

Permalink
Update worker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
erohtar committed Dec 12, 2022
1 parent 7c44649 commit 5f27de1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion www/include/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 5f27de1

Please sign in to comment.