fux in upload_folder
This commit is contained in:
@@ -481,7 +481,7 @@ module.exports = {
|
|||||||
upload_gcode: async function (filename, file) {
|
upload_gcode: async function (filename, file) {
|
||||||
const xhr = new XMLHttpRequest();
|
const xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
xhr.onload = function () {
|
xhr.onload = () => {
|
||||||
this.filesUploaded++;
|
this.filesUploaded++;
|
||||||
if (this.filesUploaded == this.totalFiles) {
|
if (this.filesUploaded == this.totalFiles) {
|
||||||
this.uploadFolder = false;
|
this.uploadFolder = false;
|
||||||
@@ -495,7 +495,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
xhr.onerror = function () {
|
xhr.onerror = () => {
|
||||||
alert("Upload failed.");
|
alert("Upload failed.");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user