|
|
@@ -20,7 +20,7 @@ class App { |
|
|
|
this.res404 = options.res404 || res404; |
|
|
|
this.res403 = options.res403 || res403; |
|
|
|
|
|
|
|
// Script to be served as /webby.js |
|
|
|
// Script to be served as /webframe.js |
|
|
|
this.clientScript = ""; |
|
|
|
|
|
|
|
// Create server |
|
|
@@ -45,8 +45,8 @@ class App { |
|
|
|
fs.readFileSync(__dirname+"/client/utils.js", "utf8")); |
|
|
|
} |
|
|
|
|
|
|
|
// Serve /webby.js |
|
|
|
this.get("/webby.js", (req, res) => { |
|
|
|
// Serve /webframe.js |
|
|
|
this.get("/webframe.js", (req, res) => { |
|
|
|
res.writeHead(200, { |
|
|
|
"Content-Type": "application/javascript" |
|
|
|
}); |
|
|
@@ -148,7 +148,7 @@ class App { |
|
|
|
} |
|
|
|
|
|
|
|
/* |
|
|
|
* Add code to be served as /webby.js |
|
|
|
* Add code to be served as /webframe.js |
|
|
|
*/ |
|
|
|
addScript(name, str) { |
|
|
|
var start = "(function "+name+"() {\n"; |