]> git.cworth.org Git - zombocom-ai/commitdiff
Fix bug in clearing the spinner after image generation is done
authorCarl Worth <cworth@cworth.org>
Thu, 8 Dec 2022 01:11:47 +0000 (17:11 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 8 Dec 2022 01:11:47 +0000 (17:11 -0800)
The function is clearTimeout, not cancelTimeout.

index.html

index d055878d9cf0339d9bcf62bf55489a59314e4e9a..a3aeb04d85b1531ee098caa35410b0cab6a159b3 100644 (file)
@@ -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();
     });