let server.js serve index.html by default
This commit is contained in:
parent
dc9a11055d
commit
8c4181ef7e
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ http.createServer(function(request, response) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fs.statSync(filename).isDirectory()) filename += '/editor.html';
|
if (fs.statSync(filename).isDirectory()) filename += '/index.html';
|
||||||
|
|
||||||
fs.readFile(filename, "binary", function(err, file) {
|
fs.readFile(filename, "binary", function(err, file) {
|
||||||
if(err) {
|
if(err) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue