This commit is contained in:
Soph :3 2025-07-11 15:31:31 +03:00
parent eefc7092f5
commit 60ecf8a1a2

View file

@ -13,7 +13,7 @@ app.post('/render', async (c) => {
const body = await c.req.json().catch(() => null)
let extraArgs = ""
let extraArgs = "-b"
let filename;
let size;
@ -35,7 +35,6 @@ app.post('/render', async (c) => {
extraArgs += ` -W ${w} -H ${h}`;
}
extraArgs += " -b"
if(body?.extraArgs) {
if (typeof body.extraArgs !== 'string') {
return c.text('extraArgs must be a string', 400)