Debugging for desktop

This commit is contained in:
2026-10-06 19:38:31 -03:00
parent 3cf4b10b8c
commit 4524cfe960
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -77,6 +77,10 @@ win.addEventListener("close", async (event) => {
Deno.exit(0);
});
if (Deno.env.get("DEBUG")) {
win.openDevtools();
}
// deno desktop binds this to a private local address and opens the window on it, the port given here is ignored
Deno.serve(async (req) => {
const url = new URL(req.url);