From e5d1c5b63b348a0fd657f99ca8ba4d055031202a Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 9 Apr 2012 21:28:51 +0200 Subject: Add missing file static/js/lafargue.js. --- static/js/lafargue.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'static') 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); }; -- cgit v1.2.3