From 0a8db9c0d98341bc91c50a732351f8c9fc435087 Mon Sep 17 00:00:00 2001 From: Food Date: Mon, 25 Apr 2016 20:04:39 -0400 Subject: [PATCH] Typo and slug having encoded chars fix --- webserver/public/lib/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webserver/public/lib/js/app.js b/webserver/public/lib/js/app.js index 3ec58e3..ec98cda 100644 --- a/webserver/public/lib/js/app.js +++ b/webserver/public/lib/js/app.js @@ -7334,7 +7334,7 @@ });*/ 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'; } @@ -7342,7 +7342,7 @@ 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'; } }