mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
Migrate to ESLint 9 and fix linting issues
This commit is contained in:
@@ -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