X-Git-Url: https://jfr.im/git/irc/quakenet/qwebirc.git/blobdiff_plain/becfa8500e40fa390537860c34775cfedca388ea..fbe5af7709ff70c49b70817793fc39664ddca96b:/js/sound.js diff --git a/js/sound.js b/js/sound.js index 4bbdaa7..f204382 100644 --- a/js/sound.js +++ b/js/sound.js @@ -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");