style: fix formatting and add missing commas in code
All checks were successful
CI / Get Changed Files (pull_request) Successful in 10s
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Successful in 26s
CI / eslint (pull_request) Successful in 39s
CI / prettier (pull_request) Successful in 30s
CI / Docker frontend validation (pull_request) Successful in 57s
CI / test-build (pull_request) Successful in 42s

This commit is contained in:
Jan-Marlon Leibl 2025-05-15 14:04:43 +02:00
commit 6d353cc202
Signed by: jleibl
GPG key ID: 300B2F906DC6F1D5
5 changed files with 24 additions and 18 deletions

View file

@ -1,7 +1,7 @@
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
providedIn: 'root',
})
export class AudioService {
private audioCache = new Map<string, HTMLAudioElement>();
@ -18,12 +18,12 @@ export class AudioService {
playBetSound(): void {
const audio = this.getAudio('bet.mp3');
audio.currentTime = 0;
audio.play().catch(error => console.error('Error playing bet sound:', error));
audio.play().catch((error) => console.error('Error playing bet sound:', error));
}
playWinSound(): void {
const audio = this.getAudio('win.mp3');
audio.currentTime = 0;
audio.play().catch(error => console.error('Error playing win sound:', error));
audio.play().catch((error) => console.error('Error playing win sound:', error));
}
}
}