chore: fix typo

This commit is contained in:
sigoden
2022-08-03 08:51:12 +08:00
parent a489c5647a
commit cc0014c183
10 changed files with 25 additions and 25 deletions

View File

@@ -75,7 +75,7 @@ class Uploader {
}
ajax() {
Uploader.runings += 1;
Uploader.runnings += 1;
const url = getUrl(this.name);
this.lastUptime = Date.now();
const ajax = new XMLHttpRequest();
@@ -110,20 +110,20 @@ class Uploader {
complete() {
this.$uploadStatus.innerHTML = ``;
Uploader.runings -= 1;
Uploader.runnings -= 1;
Uploader.runQueue();
}
fail() {
this.$uploadStatus.innerHTML = ``;
Uploader.runings -= 1;
Uploader.runnings -= 1;
Uploader.runQueue();
}
}
Uploader.globalIdx = 0;
Uploader.runings = 0;
Uploader.runnings = 0;
/**
* @type Uploader[]
@@ -132,7 +132,7 @@ Uploader.queues = [];
Uploader.runQueue = () => {
if (Uploader.runings > 2) return;
if (Uploader.runnings > 2) return;
let uploader = Uploader.queues.shift();
if (!uploader) return;
uploader.ajax();