A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
fix: set default state
Christian Fei41bb82b35b77
diff --git a/index.js b/index.jsindex dd6315f..74d9c06 100644--- a/index.js+++ b/index.js@@ -5,7 +5,10 @@ import { createServer } from './lib/server.js'async function main ({port = 3000, connections = []} = {}) {const repo = new Repository()- const state = {}+ const state = {+ downloading: {},+ summarizing: {},+ }createServer({repo, state, port, connections}).listen(port, () => {