This commit is contained in:
selcuk committed 2022-07-12 15:24:39 +03:00
1 parent fee204a338
commit 12fefb5939
3 files changed
+29 -2

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
console.log("starting");
fetch("http://localhost:3000/flasher/getProjects", {
method: "POST",
body: "body",
headers: {
// "Content-Type": "multipart/form-data",
// "content-type": "text/html; charset=utf-8",
},
})
.then(function (res) {
console.log("hello world");
console.log(res);
location.reload();
})
.catch((err) => ("Error occured", err));
var socket = io();
form.addEventListener("submit", function (e) {
e.preventDefault();
if (input.value) {
socket.emit("chat message", input.value);
input.value = "";
}
});