Browse Source

Correctly decode room from url and cleaned up old code.

pull/108/head
Simon Eisenmann 12 years ago
parent
commit
99f3a4f81b
  1. 14
      static/js/services/mediastream.js

14
static/js/services/mediastream.js

@ -280,21 +280,11 @@ define([ @@ -280,21 +280,11 @@ define([
// Room selector.
$rootScope.$on("$locationChangeSuccess", function(event) {
/*var defaultRoom, room;
room = defaultRoom = $rootScope.roomid || "";
if ($route.current) {
room = $route.current.params.room;
} else {
room = "";
}
if (!ready && room !== defaultRoom && !room) {
// First start.
$location.path("/" + defaultRoom).replace();
return;
}*/
var room;
if ($route.current) {
room = $route.current.params.room;
room = $window.decodeURIComponent(room);
} else {
room = "";
}

Loading…
Cancel
Save