Added button on frontpage for accessing client-version

This commit is contained in:
Kasper Rynning-Tønnesen
2018-03-12 19:33:19 +01:00
parent 8180b284af
commit 0df26727da
4 changed files with 17 additions and 7 deletions

View File

@@ -121,7 +121,6 @@ function root(req, res, next) {
} else if(subdomain[0] == "www") {
res.redirect("https://zoff.me");
} else {
var data = {
year: year,
javascript_file: "main.min.js",
@@ -131,7 +130,7 @@ function root(req, res, next) {
embed: false,
client: false
}
if(subdomain == "client") {
if(subdomain[0] == "client") {
data.client = true;
}
res.render('layouts/client/frontpage', data);