[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-ternary': 'off',
'no-undef': 'off', 'no-undef': 'off',
'no-undefined': 'off', 'no-undefined': 'off',
'no-unused-expressions': 'off',
'no-unused-vars': ['error', { args: 'none', caughtErrors: 'none' }], 'no-unused-vars': ['error', { args: 'none', caughtErrors: 'none' }],
'no-useless-assignment': 'off', 'no-useless-assignment': 'off',
'one-var': 'off', 'one-var': 'off',

View File

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