whoops
This commit is contained in:
parent
a7e02cd76d
commit
065b3062a6
1 changed files with 4 additions and 5 deletions
|
@ -689,7 +689,7 @@ const _generate = async (endpoint, request, bb, options = {}) => {
|
||||||
seedbtn.textContent = "U";
|
seedbtn.textContent = "U";
|
||||||
seedbtn.title = "Use seed " + `${seeds[at]}`;
|
seedbtn.title = "Use seed " + `${seeds[at]}`;
|
||||||
seedbtn.addEventListener("click", () => {
|
seedbtn.addEventListener("click", () => {
|
||||||
sendSeed(at);
|
sendSeed(seeds[at]);
|
||||||
});
|
});
|
||||||
imageSelectMenu.appendChild(seedbtn);
|
imageSelectMenu.appendChild(seedbtn);
|
||||||
|
|
||||||
|
@ -1883,7 +1883,6 @@ window.onbeforeunload = async () => {
|
||||||
if (generating) await fetch(`${host}${url}interrupt`, {method: "POST"});
|
if (generating) await fetch(`${host}${url}interrupt`, {method: "POST"});
|
||||||
};
|
};
|
||||||
|
|
||||||
function sendSeed(seedIndex) {
|
const sendSeed = (seed) => {
|
||||||
stableDiffusionData.seed = document.getElementById("seed").value =
|
stableDiffusionData.seed = document.getElementById("seed").value = seed;
|
||||||
seeds[seedIndex - 1];
|
};
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue