fux in upload_folder

This commit is contained in:
sanjayk03-dev
2024-04-10 02:32:36 +05:30
parent f76b6310bd
commit ca5c4e7c9d

View File

@@ -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.");
}; };