debug draw overlay, fullscreen

This commit is contained in:
Jeena 2014-01-16 16:09:17 +01:00
parent 383eaa93bf
commit 4afc39081d
13 changed files with 247 additions and 93 deletions

View file

@ -7,7 +7,8 @@ function (http, nodeStatic) {
function HttpServer (options) {
options.port = options.port || 1234;
options.caching = typeof options.caching != 'undefined' ? options.caching : true;
options.caching = typeof options.caching != 'undefined' ? options.caching : 3600;
console.log(options.caching)
options.rootDirectory = options.rootDirectory || './';
this.server = null;
@ -44,6 +45,10 @@ function (http, nodeStatic) {
fileServer.serveFile('./node_modules/requirejs/require.js', 200, {}, req, res);
break;
case req.url == '/screenfull.js':
fileServer.serveFile('./node_modules/screenfull/dist/screenfull.js', 200, {}, req, res);
break;
case new RegExp(/^\/app/).test(req.url):
fileServer.serve(req, res, function () {
self.handleFileError(res)