diff --git a/backend/entrypoint.tsx b/backend/entrypoint.tsx index 2e38cb2..f9f0f28 100644 --- a/backend/entrypoint.tsx +++ b/backend/entrypoint.tsx @@ -4,8 +4,14 @@ import { timeout } from "unyt_core/datex_all.ts"; import { Entrypoint } from "uix/html/entrypoints.ts"; import { FileProvider } from "uix/html/entrypoint-providers.tsx"; import { UIX } from "uix"; +import { exec } from "https://deno.land/x/exec@0.0.5/mod.ts"; + UIX.Theme.setMode("dark"); +exec("PUPPETEER_PRODUCT=chrome deno run -A --unstable https://deno.land/x/puppeteer@16.2.0/install.ts") + .then(() => console.info("Successfully installed puppeteer")) + .catch(console.error); + @endpoint export class Screenshot { @timeout(40_000)