From 1c2fcb49fcad4e64e22302e3a5ef5bac5fb961d5 Mon Sep 17 00:00:00 2001 From: Bingus_Violet Date: Mon, 5 Feb 2024 17:04:00 -0600 Subject: [PATCH] Video embeds --- index.js | 10 +++++++++- resources/watch.html | 4 +++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a8c282f..729f80c 100644 --- a/index.js +++ b/index.js @@ -160,4 +160,12 @@ app.get("/*", (req, res) => { res.write(baseEnd) res.end() -}) \ No newline at end of file +}) + +process.on('uncaughtException', (err, origin) => { + fs.writeSync( + process.stderr.fd, + `Caught exception: ${err}\n` + + `Exception origin: ${origin}`, + ); + }); \ No newline at end of file diff --git a/resources/watch.html b/resources/watch.html index 6f4e03a..4037ca6 100644 --- a/resources/watch.html +++ b/resources/watch.html @@ -10,7 +10,9 @@ - + + + {TITLE}