summaryrefslogtreecommitdiff
path: root/frontend/static/js/room.js
diff options
context:
space:
mode:
authorroot <root@lalalizard.com>2012-12-27 05:35:44 -0500
committerroot <root@lalalizard.com>2012-12-27 05:38:54 -0500
commit5f057d1d95d00294472edcbfbc17cfec4dfb561d (patch)
tree861801786d4a7f06989396920c9911640fdea97d /frontend/static/js/room.js
parent321cbf72d3019af40e2b9aacd68e5946df0c75a1 (diff)
fix /profile links with username.sj.com
Diffstat (limited to 'frontend/static/js/room.js')
-rw-r--r--frontend/static/js/room.js3
1 files changed, 2 insertions, 1 deletions
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
}
}