specify *what* is timed out
This commit is contained in:
parent
7a7a629063
commit
2b2796a628
2 changed files with 6 additions and 7 deletions
|
@ -17,12 +17,12 @@ async function getMeowTimeout(endpoint) {
|
||||||
if (response.status === 423) {
|
if (response.status === 423) {
|
||||||
meowButton.disabled=true;
|
meowButton.disabled=true;
|
||||||
meowButton.innerHTML = "<span>sleeping...</span>";
|
meowButton.innerHTML = "<span>sleeping...</span>";
|
||||||
console.warn("TIMED OUT")
|
console.warn("MEOW TIMED OUT")
|
||||||
}
|
}
|
||||||
if (response.status === 100) {
|
if (response.status === 100) {
|
||||||
meowButton.disabled=false;
|
meowButton.disabled=false;
|
||||||
meowButton.innerHTML = "<span>meow</span>";
|
meowButton.innerHTML = "<span>meow</span>";
|
||||||
console.warn("NOT TIMED OUT")
|
console.warn("MEOW NOT TIMED OUT")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,12 +31,12 @@ async function getBeepTimeout(endpoint) {
|
||||||
if (response.status === 423) {
|
if (response.status === 423) {
|
||||||
beepButton.disabled=true;
|
beepButton.disabled=true;
|
||||||
beepButton.innerHTML = "<span>sleeping...</span>";
|
beepButton.innerHTML = "<span>sleeping...</span>";
|
||||||
console.warn("TIMED OUT")
|
console.warn("BEEP TIMED OUT")
|
||||||
}
|
}
|
||||||
if (response.status === 100) {
|
if (response.status === 100) {
|
||||||
beepButton.disabled=false;
|
beepButton.disabled=false;
|
||||||
beepButton.innerHTML = "<span>meow</span>";
|
beepButton.innerHTML = "<span>meow</span>";
|
||||||
console.warn("NOT TIMED OUT")
|
console.warn("BEEP NOT TIMED OUT")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,11 +45,11 @@ async function getKaomojiTimeout(endpoint) {
|
||||||
if (response.status === 423) {
|
if (response.status === 423) {
|
||||||
kaomojiButton.disabled=true;
|
kaomojiButton.disabled=true;
|
||||||
kaomojiButton.innerHTML = "<span>sleeping...</span>";
|
kaomojiButton.innerHTML = "<span>sleeping...</span>";
|
||||||
console.warn("TIMED OUT")
|
console.warn("KAOMOJI TIMED OUT")
|
||||||
}
|
}
|
||||||
if (response.status === 100) {
|
if (response.status === 100) {
|
||||||
kaomojiButton.disabled=false;
|
kaomojiButton.disabled=false;
|
||||||
kaomojiButton.innerHTML = "<span>meow</span>";
|
kaomojiButton.innerHTML = "<span>meow</span>";
|
||||||
console.warn("NOT TIMED OUT")
|
console.warn("KAOMOJI NOT TIMED OUT")
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -341,7 +341,6 @@ function setOrange() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getTheme() {
|
function getTheme() {
|
||||||
|
|
||||||
if (colorBool) {
|
if (colorBool) {
|
||||||
// if true: green
|
// if true: green
|
||||||
setGreen()
|
setGreen()
|
||||||
|
|
Loading…
Reference in a new issue