diff --git a/static/chat.js b/static/chat.js index d20b113..10d506c 100644 --- a/static/chat.js +++ b/static/chat.js @@ -2,12 +2,13 @@ function Chat($scope) { if (!$scope.server) { window.ng_scope = $scope; $scope.chat_url = $scope.chat_url || location.pathname.substring(1); + $scope.key = location.hash.substring(1); + console.log($scope.key); } var i; $scope.chat_name = $scope.chat_name || $scope.chat_url.split('_').join(' ') || 'Chat'; $scope.my_username = undefined; $scope.locked = false; - $scope.chatters = []; $scope.chatters.get = function (name) { for (var i = 0; i