Migrate to ESLint 9 and fix linting issues

This commit is contained in:
John Factotum
2024-04-23 12:59:31 +08:00
parent 04b8789267
commit 5600b6c0dc
5 changed files with 61 additions and 31 deletions
+2 -2
View File
@@ -785,7 +785,7 @@ class MOBI6 {
const recindex = img.getAttribute('recindex')
try {
img.src = await this.loadRecindex(recindex)
} catch (e) {
} catch {
console.warn(`Failed to load image ${recindex}`)
}
}
@@ -795,7 +795,7 @@ class MOBI6 {
try {
media.src = await this.loadRecindex(mediarecindex)
if (recindex) media.poster = await this.loadRecindex(recindex)
} catch (e) {
} catch {
console.warn(`Failed to load media ${mediarecindex}`)
}
}