summaryrefslogtreecommitdiff
path: root/src/js/randomblob.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/randomblob.js')
-rw-r--r--src/js/randomblob.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js/randomblob.js b/src/js/randomblob.js
index 903ec80a..3e068255 100644
--- a/src/js/randomblob.js
+++ b/src/js/randomblob.js
@@ -59,10 +59,11 @@ function main() {
resetBlob()
isFirstTime = false;
}
- setTimeout(main, getRandomInt(7500, 30000));
+ let mainInterval = setTimeout(main, getRandomInt(7500, 30000));
}
blob.addEventListener('click', function() {
+ clearTimeout(mainInterval)
main(getRandomInt(7500, 30000));
});