[web] Lint source code

This commit is contained in:
Alain Nussbaumer 2024-04-23 20:27:50 +02:00
parent 3f3ab829c0
commit f156bb357a
2 changed files with 8 additions and 5 deletions

View File

@ -33,7 +33,6 @@ export default [
'no-ternary': 'off',
'no-undef': 'off',
'no-undefined': 'off',
'no-unused-expressions': 'off',
'no-unused-vars': ['error', { args: 'none', caughtErrors: 'none' }],
'no-useless-assignment': 'off',
'one-var': 'off',

View File

@ -129,9 +129,11 @@ export default {
) {
return index
}
currentVerse.time < currentTime
? (start = index + 1)
: (end = index - 1)
if (currentVerse.time < currentTime) {
start = index + 1
} else {
end = index - 1
}
}
return -1
}
@ -141,7 +143,9 @@ export default {
},
watch: {
verse_index() {
this.autoScrolling && this.scroll_to_verse()
if (this.autoScrolling) {
this.scroll_to_verse()
}
this.lastIndex = this.verse_index
}
},