浏览代码

Bugfix. Paths to sound files should be absolute.

JC Brand 10 年之前
父节点
当前提交
eb00dcd44a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      converse.js

+ 1 - 1
converse.js

@@ -349,7 +349,7 @@
         this.playNotification = function () {
         this.playNotification = function () {
             var audio;
             var audio;
             if (converse.play_sounds && typeof Audio !== "undefined"){
             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')) {
                 if (audio.canPlayType('/audio/ogg')) {
                     audio.play();
                     audio.play();
                 } else {
                 } else {