soiz1 commited on
Commit
9ce5dd9
·
verified ·
1 Parent(s): bf149b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -208,8 +208,7 @@ def index():
208
  function updateFormDataPreview(formJson) {
209
  const previewDiv = document.getElementById('formDataPreview');
210
  previewDiv.innerHTML = '<strong>Form data (JSON):</strong><br>' +
211
- JSON.stringify(formJson, null, 2) +
212
- ' <span class="comment">// この値がフォーム部分です。</span>';
213
  }
214
 
215
  function updateFetchCode() {
@@ -226,7 +225,7 @@ fetch('${apiUrl}', {
226
  headers: {
227
  'Content-Type': 'multipart/form-data'
228
  },
229
- body: formData
230
  })
231
  .then(response => {
232
  if (!response.ok) {
 
208
  function updateFormDataPreview(formJson) {
209
  const previewDiv = document.getElementById('formDataPreview');
210
  previewDiv.innerHTML = '<strong>Form data (JSON):</strong><br>' +
211
+ JSON.stringify(formJson, null, 2);
 
212
  }
213
 
214
  function updateFetchCode() {
 
225
  headers: {
226
  'Content-Type': 'multipart/form-data'
227
  },
228
+ body: ${JSON.stringify(formJson, null, 2)}
229
  })
230
  .then(response => {
231
  if (!response.ok) {