fix bruh
This commit is contained in:
parent
eefc7092f5
commit
60ecf8a1a2
1 changed files with 1 additions and 2 deletions
3
index.ts
3
index.ts
|
|
@ -13,7 +13,7 @@ app.post('/render', async (c) => {
|
||||||
|
|
||||||
const body = await c.req.json().catch(() => null)
|
const body = await c.req.json().catch(() => null)
|
||||||
|
|
||||||
let extraArgs = ""
|
let extraArgs = "-b"
|
||||||
|
|
||||||
let filename;
|
let filename;
|
||||||
let size;
|
let size;
|
||||||
|
|
@ -35,7 +35,6 @@ app.post('/render', async (c) => {
|
||||||
|
|
||||||
extraArgs += ` -W ${w} -H ${h}`;
|
extraArgs += ` -W ${w} -H ${h}`;
|
||||||
}
|
}
|
||||||
extraArgs += " -b"
|
|
||||||
if(body?.extraArgs) {
|
if(body?.extraArgs) {
|
||||||
if (typeof body.extraArgs !== 'string') {
|
if (typeof body.extraArgs !== 'string') {
|
||||||
return c.text('extraArgs must be a string', 400)
|
return c.text('extraArgs must be a string', 400)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue