Formatting fix.

This commit is contained in:
d3x0r
2017-03-24 11:00:09 -07:00
committed by GitHub
parent c0e8de95c7
commit 62eb748f93

View File

@@ -14,9 +14,9 @@ var gun = Gun({
});
var server = require('http').createServer(function(req, res){
var insert = "";
var insert = "";
if( req.url.endsWith( "gun.js" ) )
insert = "../";
insert = "../";
require('fs').createReadStream(require('path').join(__dirname, insert, req.url)).on('error',function(){ // static files!
res.writeHead(200, {'Content-Type': 'text/html'});