frontend URLs: *../resources
-> /resources
This commit is contained in:
parent
4b3cc7396c
commit
90b9c5fe8a
@ -18,7 +18,7 @@ export class AudioService {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.isPlaying = true;
|
this.isPlaying = true;
|
||||||
this.audio.src = '../../../resources/sounds/' + name + '.mp3';
|
this.audio.src = '/resources/sounds/' + name + '.mp3';
|
||||||
this.audio.load();
|
this.audio.load();
|
||||||
this.audio.volume = 0.65; // 65% volume
|
this.audio.volume = 0.65; // 65% volume
|
||||||
this.audio.play().catch((e) => {
|
this.audio.play().catch((e) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user