Commit eb00dcd4 authored by JC Brand's avatar JC Brand

Bugfix. Paths to sound files should be absolute.

parent 995c5fdb
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment