mirror of
https://github.com/owntone/owntone-server.git
synced 2025-05-05 01:06:39 -04:00
[web] Remove unused variables
This commit is contained in:
parent
2c58351bec
commit
2d7776619f
@ -29,10 +29,10 @@ export default {
|
|||||||
this.context = new (window.AudioContext || window.webkitAudioContext)()
|
this.context = new (window.AudioContext || window.webkitAudioContext)()
|
||||||
const source = this.context.createMediaElementSource(this.audio)
|
const source = this.context.createMediaElementSource(this.audio)
|
||||||
source.connect(this.context.destination)
|
source.connect(this.context.destination)
|
||||||
this.audio.addEventListener('canplaythrough', (event) => {
|
this.audio.addEventListener('canplaythrough', () => {
|
||||||
this.audio.play()
|
this.audio.play()
|
||||||
})
|
})
|
||||||
this.audio.addEventListener('canplay', (event) => {
|
this.audio.addEventListener('canplay', () => {
|
||||||
this.audio.play()
|
this.audio.play()
|
||||||
})
|
})
|
||||||
return this.audio
|
return this.audio
|
||||||
|
@ -18,7 +18,7 @@ const createComparators = (criteria) =>
|
|||||||
case Date:
|
case Date:
|
||||||
return (a, b) => dateComparator(a[field], b[field]) * order
|
return (a, b) => dateComparator(a[field], b[field]) * order
|
||||||
default:
|
default:
|
||||||
return (a, b) => 0
|
return () => 0
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ const createIndexer = ({ field, type } = {}) => {
|
|||||||
case 'Digits':
|
case 'Digits':
|
||||||
return (item) => numberIndex(item[field])
|
return (item) => numberIndex(item[field])
|
||||||
default:
|
default:
|
||||||
return (item) => NO_INDEX
|
return () => NO_INDEX
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ export default {
|
|||||||
get() {
|
get() {
|
||||||
return this.$store.state.queue.items
|
return this.$store.state.queue.items
|
||||||
},
|
},
|
||||||
set(value) {
|
set() {
|
||||||
/* Do nothing? Send move request in @end event */
|
/* Do nothing? Send move request in @end event */
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user