From 16bb81bd2fa68dc81121e9edbb479991d1ea82bc Mon Sep 17 00:00:00 2001 From: umorist47 Date: Tue, 10 Mar 2026 11:52:28 +0300 Subject: [PATCH] fix worker --- com.umorist47.meowrelaygui/contents/ui/worker.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/com.umorist47.meowrelaygui/contents/ui/worker.mjs b/com.umorist47.meowrelaygui/contents/ui/worker.mjs index c3753d7..9addc33 100644 --- a/com.umorist47.meowrelaygui/contents/ui/worker.mjs +++ b/com.umorist47.meowrelaygui/contents/ui/worker.mjs @@ -64,7 +64,7 @@ function fetchRoutes() { // routeModel.append(response[i]); //} } else { - WorkerScript.sendMessage({ "action": "fetch_routes", "data": [{"code":"ERR","name":"Error, please try again :<","provider":xhr.status}] }); + //WorkerScript.sendMessage({ "action": "fetch_routes", "data": [{"code":"ERR","name":"Error, please try again :<","provider":xhr.status}] }); console.error("Failed to fetch routes:", xhr.status); } } @@ -95,7 +95,7 @@ function fetchProfile() { // profileModel.append(response[i]); //} } else { - WorkerScript.sendMessage({ "action": "fetch_profile", "data": {"provider":xhr.status, "current_device":"error"} }); + //WorkerScript.sendMessage({ "action": "fetch_profile", "data": {"provider":xhr.status, "current_device":"error"} }); console.error("Failed to fetch profile:", xhr.status); } } @@ -126,7 +126,7 @@ function fetchStats() { // profileModel.append(response[i]); //} } else { - WorkerScript.sendMessage({ "action": "fetch_stats", "data": {} }); + //WorkerScript.sendMessage({ "action": "fetch_stats", "data": {} }); console.error("Failed to fetch profile:", xhr.status); } }