From 1f72f81b91c314ad4c179e16a381f0edf92801c4 Mon Sep 17 00:00:00 2001 From: Damjan Georgievski Date: Thu, 4 Feb 2016 16:33:23 +0100 Subject: [PATCH] Allow The Lounge to be proxied behind a /path/ url contains three small changes to use relative urls instead of absolute rooted at / * favicons in index.html * badge and pop sound in lounge.js * the url for the socket.io endpoint --- client/index.html | 6 +++--- client/js/lounge.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/index.html b/client/index.html index 846e8136..6f24b438 100644 --- a/client/index.html +++ b/client/index.html @@ -16,9 +16,9 @@ - - - + + + "> diff --git a/client/js/lounge.js b/client/js/lounge.js index 68956b9b..a19da684 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -1,5 +1,5 @@ $(function() { - var socket = io(); + var socket = io({path:"./socket.io/"}); var commands = [ "/close", "/connect", @@ -38,7 +38,7 @@ $(function() { var pop; try { pop = new Audio(); - pop.src = "/audio/pop.ogg"; + pop.src = "audio/pop.ogg"; } catch (e) { pop = { play: $.noop @@ -656,7 +656,7 @@ $(function() { if (settings.badge && Notification.permission === "granted") { var notify = new Notification(msg.from + " says:", { body: msg.text.trim(), - icon: "/img/logo-64.png", + icon: "img/logo-64.png", tag: target }); notify.onclick = function() {