Fixed issues with client

This commit is contained in:
Kasper Rynning-Tønnesen
2018-04-06 16:51:04 +02:00
parent 1d9b3a42b1
commit 435fb23fd3
7 changed files with 40 additions and 26 deletions

View File

@@ -188,10 +188,9 @@ function channel(req, res, next) {
embed: false,
client:false,
}
if(subdomain == "client") {
if(subdomain[0] == "client") {
data.client = true;
}
if(req.params.channel_name == "404") {
res.status(404);
}