frontend URLs: *../resources -> /resources
This commit is contained in:
1 parent
7eb4414518
commit
3aedd9b2f1
1 file changed
+1
-1
@@ -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) => {
|
||||||
|
|||||||
Reference in new issue
Block a user