mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
debug draw overlay, fullscreen
This commit is contained in:
parent
383eaa93bf
commit
4afc39081d
13 changed files with 247 additions and 93 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue