diff --git a/app.js b/app.js index 81b394b..b9c32dd 100644 --- a/app.js +++ b/app.js @@ -52,7 +52,7 @@ app.use(function(req, res, next) { }); //deliver static files by default -app.use(express.static(__dirname + '/static')); +app.use("/", express.static(__dirname + '/static')); //API: /session app.use("/session", function(req, res) { @@ -101,7 +101,7 @@ app.use(function(err, req, res, next) { res.end(); }); -//fire it up as https (or http) server +//fire it up as https (or http - NOT recommended(!)) server if(settings.general.https == true) { var httpsOptions = { "cert": fs.readFileSync(settings.https.cert), diff --git a/static/js/main.js b/static/js/main.js index d6d655e..1824e8a 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -1,5 +1,6 @@ $(function() { + //TODO: remove this entirely, allow user to assign own colors! $(".content-container-header").each(function() { $(this).css("background-color", "hsla(" + Math.round(Math.random() * 360) + ", 100%, 50%, 1);"); });