From 2b2796a6286e1c1115436a0ac443a3b20869c825 Mon Sep 17 00:00:00 2001 From: limepotato Date: Wed, 30 Oct 2024 15:52:37 -0600 Subject: [PATCH] specify *what* is timed out --- frontend/public/scripts/api.js | 12 ++++++------ frontend/public/scripts/main.js | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/frontend/public/scripts/api.js b/frontend/public/scripts/api.js index 06dd7b5..e39eb2b 100644 --- a/frontend/public/scripts/api.js +++ b/frontend/public/scripts/api.js @@ -17,12 +17,12 @@ async function getMeowTimeout(endpoint) { if (response.status === 423) { meowButton.disabled=true; meowButton.innerHTML = "sleeping..."; - console.warn("TIMED OUT") + console.warn("MEOW TIMED OUT") } if (response.status === 100) { meowButton.disabled=false; meowButton.innerHTML = "meow"; - console.warn("NOT TIMED OUT") + console.warn("MEOW NOT TIMED OUT") } } @@ -31,12 +31,12 @@ async function getBeepTimeout(endpoint) { if (response.status === 423) { beepButton.disabled=true; beepButton.innerHTML = "sleeping..."; - console.warn("TIMED OUT") + console.warn("BEEP TIMED OUT") } if (response.status === 100) { beepButton.disabled=false; beepButton.innerHTML = "meow"; - console.warn("NOT TIMED OUT") + console.warn("BEEP NOT TIMED OUT") } } @@ -45,11 +45,11 @@ async function getKaomojiTimeout(endpoint) { if (response.status === 423) { kaomojiButton.disabled=true; kaomojiButton.innerHTML = "sleeping..."; - console.warn("TIMED OUT") + console.warn("KAOMOJI TIMED OUT") } if (response.status === 100) { kaomojiButton.disabled=false; kaomojiButton.innerHTML = "meow"; - console.warn("NOT TIMED OUT") + console.warn("KAOMOJI NOT TIMED OUT") } } \ No newline at end of file diff --git a/frontend/public/scripts/main.js b/frontend/public/scripts/main.js index ee4f8d0..270c4d0 100644 --- a/frontend/public/scripts/main.js +++ b/frontend/public/scripts/main.js @@ -341,7 +341,6 @@ function setOrange() { } function getTheme() { - if (colorBool) { // if true: green setGreen()