Skip to content

Commit

Permalink
Web update v1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Phantom-fs authored Apr 19, 2024
1 parent cf240ba commit 6099957
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion js/record.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,10 @@ function submitRecording() {
// Send the video blob to the server
fetch(url, {
method: 'POST',
body: formData
body: formData,
headers: {
'Content-Type': 'multipart/form-data'
}
})
.then(response => response.json())
.then(data => {
Expand Down
2 changes: 1 addition & 1 deletion js/script.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
document.getElementById("loginForm").addEventListener("submit", function(event) {
event.preventDefault(); // Prevent form submission

var name = document.getElementById("name").value;
var name = document.getElementById("name").value.trim();
var reg = document.getElementById("reg").value;
var email = document.getElementById("email").value;
var phone = document.getElementById("phone").value;
Expand Down

0 comments on commit 6099957

Please sign in to comment.