jianghuyihei commited on
Commit
2e6e105
1 Parent(s): 9b426fc
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -357,7 +357,7 @@ script_template = """
357
  let state = document.getElementById("state").value;
358
  console.log(`1 User ID: ${{userId}}, State: ${{state}}`);
359
  }
360
- window.onload = setstate();
361
  """
362
 
363
  @app.get("/", response_class=HTMLResponse)
 
357
  let state = document.getElementById("state").value;
358
  console.log(`1 User ID: ${{userId}}, State: ${{state}}`);
359
  }
360
+ window.onload = setstate;
361
  """
362
 
363
  @app.get("/", response_class=HTMLResponse)