mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-15 00:35:55 -04:00
[web] Lint source code
This commit is contained in:
parent
3f3ab829c0
commit
f156bb357a
@ -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',
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user