From 5f057d1d95d00294472edcbfbc17cfec4dfb561d Mon Sep 17 00:00:00 2001 From: root Date: Thu, 27 Dec 2012 05:35:44 -0500 Subject: fix /profile links with username.sj.com --- frontend/static/js/room.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'frontend/static/js/room.js') diff --git a/frontend/static/js/room.js b/frontend/static/js/room.js index 2c7bbd8..8cd44d8 100644 --- a/frontend/static/js/room.js +++ b/frontend/static/js/room.js @@ -332,7 +332,8 @@ var About = loaded: false, init: function () { - $("#your-profile").attr('href', 'http://scannerjammer.com/profile/'+Auth.username) + var domain = window.location.hostname.split('.').slice(-2).join('.') + $("#your-profile").attr('href', 'http://'+Auth.username+"."+domain+"/") About.loaded = true } } -- cgit v1.2.3-70-g09d2