chore: fix some typos in comments (#3108)

Signed-off-by: loselarry <bikangning@yeah.net>
This commit is contained in:
loselarry
2024-04-25 05:15:18 +08:00
committed by GitHub
parent 18f04a7d26
commit 61f25086c3
3 changed files with 4 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ export function copy(text: string) {
}
})
.catch((e) => {
// Firefox doesnt support clipboard-write permission
// Firefox doesn't support clipboard-write permission
if (navigator.userAgent.indexOf("Firefox") != -1) {
navigator.clipboard.writeText(text).then(resolve).catch(reject);
} else {

View File

@@ -35,7 +35,7 @@ export function scanFiles(dt: DataTransfer): Promise<UploadList | FileList> {
const contents: UploadList = [];
if (dt.items) {
// ts didnt like the for of loop even tho
// ts didn't like the for of loop even tho
// it is the official example on MDN
// for (const item of dt.items) {
for (let i = 0; i < dt.items.length; i++) {