chore: save downloads to outputDir (#310)
This commit is contained in:
parent
23ce973377
commit
a15f0f301b
5 changed files with 54 additions and 3 deletions
|
|
@ -31,7 +31,7 @@ const pdf = defineTool({
|
|||
|
||||
handle: async context => {
|
||||
const tab = context.currentTabOrDie();
|
||||
const fileName = await outputFile(context.config, `page-${new Date().toISOString()}'.pdf'`);
|
||||
const fileName = await outputFile(context.config, `page-${new Date().toISOString()}.pdf`);
|
||||
|
||||
const code = [
|
||||
`// Save page as ${fileName}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue