A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
fix. cleanup, remove obsolete callback of fileHandler
Christian Fei3946a5f69b24
diff --git a/server/router/app.js b/server/router/app.jsindex 38816c9..93c0714 100644--- a/server/router/app.js+++ b/server/router/app.js@@ -29,10 +29,9 @@ export default function apiHandler (req, res) {return fileHandler('client/index.html', 'text/html')(req, res)}-function fileHandler (filePath, contentType, cb = () => {}) {+function fileHandler (filePath, contentType) {return (req, res) => {res.writeHead(200, { 'Content-Type': contentType })- cb(req, res)res.end(fs.readFileSync(filePath, 'utf8'))}}