diff --git a/index.html b/index.html index 1930e53..43a39aa 100644 --- a/index.html +++ b/index.html @@ -381,7 +381,7 @@ src="js/ui/tool/generic.js?v=3e678e0" type="text/javascript"> - + diff --git a/js/ui/tool/dream.js b/js/ui/tool/dream.js index bce7e3b..6caf2e1 100644 --- a/js/ui/tool/dream.js +++ b/js/ui/tool/dream.js @@ -521,7 +521,7 @@ const _generate = async (endpoint, request, bb, options = {}) => { if (!images[at]) return; images.splice(at, 1); seeds.splice(at, 1); - if (at >= images.length) at = 0; + if (at > images.length - 1) prevImg(); imageindextxt.textContent = `${at}/${images.length - 1}`; var seed = seeds[at]; seedbtn.title = "Use seed " + seed;