Spaces:
Sleeping
Sleeping
LeireTedCas
commited on
Commit
•
a50d0af
1
Parent(s):
278d123
Update static/js/app.js
Browse files- static/js/app.js +1 -1
static/js/app.js
CHANGED
@@ -154,7 +154,7 @@ function stopRecording() {
|
|
154 |
upload.innerHTML = "Upload";
|
155 |
//upload.addEventListener("click", function (event) {
|
156 |
|
157 |
-
|
158 |
xhr.onload = function (e) {
|
159 |
if (this.readyState === 4) {
|
160 |
console.log("Server returned: ", e.target.responseText);
|
|
|
154 |
upload.innerHTML = "Upload";
|
155 |
//upload.addEventListener("click", function (event) {
|
156 |
|
157 |
+
var xhr = new XMLHttpRequest();
|
158 |
xhr.onload = function (e) {
|
159 |
if (this.readyState === 4) {
|
160 |
console.log("Server returned: ", e.target.responseText);
|