Fix question marks breaking channel joins

This commit is contained in:
Calvin Montgomery 2014-07-01 20:35:13 -07:00
parent ece32dda5d
commit 002dadd67a
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ $("#shuffleplaylist").click(function() {
/* load channel */ /* load channel */
var loc = document.location+""; var loc = document.location+"";
var m = loc.match(/\/r\/([a-zA-Z0-9-_#]+)$/); var m = loc.match(/\/r\/([a-zA-Z0-9-_]+)/);
if(m) { if(m) {
CHANNEL.name = m[1]; CHANNEL.name = m[1];
if (CHANNEL.name.indexOf("#") !== -1) { if (CHANNEL.name.indexOf("#") !== -1) {