gone screen
This commit is contained in:
parent
5a70cafef2
commit
5538d4bc8a
4 changed files with 141 additions and 1 deletions
|
@ -20,6 +20,12 @@ router
|
|||
.get("/statusline.js", async (ctx) => {
|
||||
ctx.response.body = await Deno.readFile("web/statusline.js");
|
||||
})
|
||||
.get("/gone", async (ctx) => {
|
||||
ctx.response.body = await Deno.readFile("web/gone.html");
|
||||
})
|
||||
.get("/gone.js", async (ctx) => {
|
||||
ctx.response.body = await Deno.readFile("web/gone.js");
|
||||
})
|
||||
.get("/style.css", async (ctx) => {
|
||||
ctx.response.body = await Deno.readFile("web/style.css");
|
||||
});
|
||||
|
@ -41,7 +47,8 @@ setInterval(async () => {
|
|||
let songinfo: SongInfo | null = null;
|
||||
try {
|
||||
songinfo = await getVlcSongInfo();
|
||||
} catch {
|
||||
} catch (e) {
|
||||
console.log(`getVlcSongInfo() error: ${e}`);
|
||||
// properly handling this error is by ignoring it,
|
||||
// since then that leaves songinfo as null,
|
||||
// and that is guaranteed to be handled correctly.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue