From: Carl Worth Date: Thu, 8 Dec 2022 01:11:47 +0000 (-0800) Subject: Fix bug in clearing the spinner after image generation is done X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=1d07a12f7191d2e0951262dce1f61c22de24dfa5;p=zombocom-ai Fix bug in clearing the spinner after image generation is done The function is clearTimeout, not cancelTimeout. --- diff --git a/index.html b/index.html index d055878..a3aeb04 100644 --- a/index.html +++ b/index.html @@ -160,7 +160,7 @@ mute.addEventListener("click", () => { socket.on('generation-done', () => { /* Re-display the form and hide spinner now that generation is over. */ - cancelTimeout(spinner_timeout); + clearTimeout(spinner_timeout); hide_spinner(); });