summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-04-09 21:28:51 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-04-09 21:28:51 +0200
commite5d1c5b63b348a0fd657f99ca8ba4d055031202a (patch)
tree0889b1e2cbbb903a853c63e8868a3cfe4cfd2ca4
parent8de02bbdddebb915dd029b1a6e329a7e2efe9b9e (diff)
Add missing file static/js/lafargue.js.
-rw-r--r--static/js/lafargue.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/static/js/lafargue.js b/static/js/lafargue.js
index 06e967d..33c8e90 100644
--- a/static/js/lafargue.js
+++ b/static/js/lafargue.js
@@ -1,6 +1,7 @@
jQuery(function($) {
if (WebSocket) {
- var socket = new WebSocket('ws://localhost:3001/lafargue/events');
+ var websocket_base = $('head').attr('data-websocket-base');
+ var socket = new WebSocket(websocket_base + '/lafargue/events');
socket.onmessage = function(event) {
$('.lafargue-list').prepend(event.data);
};