Debugging for desktop
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user