Skip to content

Commit

Permalink
Merge pull request #27 from gdamjan/proxy-path-support
Browse files Browse the repository at this point in the history
Allow The Lounge to be proxied behind a /path/ url
  • Loading branch information
AlMcKinlay committed Feb 18, 2016
2 parents fc4f98f + cf1f24b commit a95d5e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions client/index.html
Expand Up @@ -16,9 +16,9 @@
<link rel="stylesheet" href="css/style.css">
<link id="theme" rel="stylesheet" href="<%= theme %>">

<link rel="shortcut icon" href="/img/favicon.png">
<link rel="icon" sizes="192x192" href="/img/touch-icon-192x192.png">
<link rel="apple-touch-icon" sizes="120x120" href="/img/apple-touch-icon-120x120.png">
<link rel="shortcut icon" href="img/favicon.png">
<link rel="icon" sizes="192x192" href="img/touch-icon-192x192.png">
<link rel="apple-touch-icon" sizes="120x120" href="img/apple-touch-icon-120x120.png">

</head>
<body class="<%= public ? "public" : "" %>">
Expand Down
7 changes: 4 additions & 3 deletions client/js/lounge.js
@@ -1,5 +1,6 @@
$(function() {
var socket = io();
var path = window.location.pathname + "socket.io/";
var socket = io({path:path});
var commands = [
"/close",
"/connect",
Expand Down Expand Up @@ -38,7 +39,7 @@ $(function() {
var pop;
try {
pop = new Audio();
pop.src = "/audio/pop.ogg";
pop.src = "audio/pop.ogg";
} catch (e) {
pop = {
play: $.noop
Expand Down Expand Up @@ -656,7 +657,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() {
Expand Down

0 comments on commit a95d5e2

Please sign in to comment.