Skip to content

Commit

Permalink
Fixed unintentionally removed lines
Browse files Browse the repository at this point in the history
  • Loading branch information
WebDev9000 authored Sep 5, 2022
1 parent ff2c4b9 commit ebeb556
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/dream_web/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function appendOutput(src, seed, config) {
outputNode.addEventListener('click', () => {
let form = document.querySelector("#generate-form");
for (const [k, v] of new FormData(form)) {
if (k == 'initimg') { continue; }
form.querySelector(`*[name=${k}]`).value = config[k];
}
if (config.variation_amount > 0 || config.with_variations != '') {
Expand Down Expand Up @@ -74,6 +75,7 @@ async function generateSubmit(form) {

// Convert file data to base64
let formData = Object.fromEntries(new FormData(form));
formData.initimg_name = formData.initimg.name
formData.initimg = formData.initimg.name !== '' ? await toBase64(formData.initimg) : null;

let strength = formData.strength;
Expand Down

0 comments on commit ebeb556

Please sign in to comment.