frontend URLs: *../resources -> /resources

This commit is contained in:
Erik Arvstedt 2022-07-11 13:32:23 +02:00
parent 4b3cc7396c
commit 90b9c5fe8a

View File

@ -18,7 +18,7 @@ export class AudioService {
return;
}
this.isPlaying = true;
this.audio.src = '../../../resources/sounds/' + name + '.mp3';
this.audio.src = '/resources/sounds/' + name + '.mp3';
this.audio.load();
this.audio.volume = 0.65; // 65% volume
this.audio.play().catch((e) => {