mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 14:09:51 -05:00
[web] Lint too short variable names
This commit is contained in:
@@ -29,10 +29,10 @@ export default {
|
||||
this.context = new (window.AudioContext || window.webkitAudioContext)()
|
||||
const source = this.context.createMediaElementSource(this.audio)
|
||||
source.connect(this.context.destination)
|
||||
this.audio.addEventListener('canplaythrough', (e) => {
|
||||
this.audio.addEventListener('canplaythrough', (event) => {
|
||||
this.audio.play()
|
||||
})
|
||||
this.audio.addEventListener('canplay', (e) => {
|
||||
this.audio.addEventListener('canplay', (event) => {
|
||||
this.audio.play()
|
||||
})
|
||||
return this.audio
|
||||
@@ -42,17 +42,17 @@ export default {
|
||||
stop() {
|
||||
try {
|
||||
this.audio.pause()
|
||||
} catch (e) {
|
||||
} catch (error) {
|
||||
// Continue regardless of error
|
||||
}
|
||||
try {
|
||||
this.audio.stop()
|
||||
} catch (e) {
|
||||
} catch (error) {
|
||||
// Continue regardless of error
|
||||
}
|
||||
try {
|
||||
this.audio.close()
|
||||
} catch (e) {
|
||||
} catch (error) {
|
||||
// Continue regardless of error
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user