]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - js/sound.js
Add configuration of dynamic and static base URLs.
[irc/quakenet/qwebirc.git] / js / sound.js
index 4bbdaa7a1a60aa0cbb291185c06ec95029bb39ec..f2043824a0bd760eb7f3abd49fc3ab514ebc3b22 100644 (file)
@@ -29,8 +29,8 @@ qwebirc.sound.SoundPlayer = new Class({
     }
     
     var debugMode = false;
-    qwebirc.util.importJS("/js/" + (debugMode?"soundmanager2":"soundmanager2-nodebug-jsmin") + ".js", "soundManager", function() {
-      soundManager.url = "/sound/";
+    qwebirc.util.importJS(qwebirc.global.staticBaseURL + "js/" + (debugMode?"soundmanager2":"soundmanager2-nodebug-jsmin") + ".js", "soundManager", function() {
+      soundManager.url = qwebirc.global.staticBaseURL + "sound/";
       
       soundManager.debugMode = debugMode;
       soundManager.useConsole = debugMode;
@@ -49,7 +49,7 @@ qwebirc.sound.SoundPlayer = new Class({
   },
   beep: function() {
     if(!this.beepLoaded) {
-      this.createSound("beep", "/sound/beep3.mp3");
+      this.createSound("beep", qwebirc.global.staticBaseURL + "sound/beep3.mp3");
       this.beepLoaded = true;
     }
     this.playSound("beep");