Browse Source

Bugfix. Paths to sound files should be absolute.

JC Brand 10 năm trước cách đây
mục cha
commit
eb00dcd44a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      converse.js

+ 1 - 1
converse.js

@@ -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 {