[web] Lint too short variable names

This commit is contained in:
Alain Nussbaumer
2024-04-26 18:24:34 +02:00
parent 8fe6cba6ef
commit d246c42a99
4 changed files with 14 additions and 16 deletions

View File

@@ -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
}
}