mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-11 14:30:20 -05:00
[web] Lint source code
This commit is contained in:
@@ -31,8 +31,8 @@ const characterIndex = (string = '') => {
|
||||
return '⌘'
|
||||
}
|
||||
|
||||
export const numberIndex = (number) => {
|
||||
return Math.floor(number / 10)
|
||||
const numberIndex = (number) => {
|
||||
Math.floor(number / 10)
|
||||
}
|
||||
|
||||
const times = [
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const toColor = (string) => {
|
||||
var hash = 0
|
||||
for (var i = 0; i < string.length; i++) {
|
||||
let hash = 0
|
||||
for (let i = 0; i < string.length; i++) {
|
||||
hash = string.charCodeAt(i) + ((hash << 5) - hash)
|
||||
}
|
||||
return (hash & 0x00ffffff).toString(16)
|
||||
|
||||
Reference in New Issue
Block a user