mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-10-24 22:59:51 -04:00
Migrate to ESLint 9 and fix linting issues
This commit is contained in:
1 parent
04b8789267
commit
5600b6c0dc
5 files changed
+61
-31
No files matched your search
@@ -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}`)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user