Bugfix. Paths to sound files should be absolute.

This commit is contained in:
JC Brand 2015-04-08 17:22:49 +02:00
parent 995c5fdb44
commit eb00dcd44a

View File

@ -349,7 +349,7 @@
this.playNotification = function () {
var audio;
if (converse.play_sounds && typeof Audio !== "undefined"){
audio = new Audio("sounds/msg_received.ogg");
audio = new Audio("/sounds/msg_received.ogg");
if (audio.canPlayType('/audio/ogg')) {
audio.play();
} else {