Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhinav Gautam authored and Abhinav Gautam committed Oct 8, 2024
1 parent cba8a87 commit da40c0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/sandbox_worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import path from "path";
import { v4 } from "uuid";

module.exports = async (job: SandboxedJob) => {

console.log("Sandboxed Worker Started", job.id);
const payload = job.data;

const browser = await puppeteer.launch(payload.options);
const browser = await puppeteer.launch(payload.launchOptions);
const page = await browser.newPage();
if(payload.content)
await page.setContent(payload.content, payload.pageOptions);
Expand Down

0 comments on commit da40c0a

Please sign in to comment.