Skip to content

Commit

Permalink
Typo and slug having encoded chars fix
Browse files Browse the repository at this point in the history
  • Loading branch information
foodbandlt committed Apr 26, 2016
1 parent db5d0cd commit 0a8db9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webserver/public/lib/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7334,15 +7334,15 @@
});*/

MP.getTokenName = function() {
if (config.selfHosted && location.host.indexOf('musqiqpad.com') != -1) {
if (config.selfHosted && location.host.indexOf('musiqpad.com') != -1) {
if (MP.session.roomInfo.slug) {
return MP.session.roomInfo.slug + '-token';
}
else {
var urlParams = (location.pathname + '').split('/');
var i = urlParams.indexOf('p');
if (urlParams.length >= (i + 2)) {
var roomSlug = urlParams[i + 1];
var roomSlug = decodeURIComponent(urlParams[i + 1]);
return roomSlug + '-token';
}
}
Expand Down

0 comments on commit 0a8db9c

Please sign in to comment.