diff --git a/print2pdf/print2pdf.go b/print2pdf/print2pdf.go index 94e446c..322920e 100644 --- a/print2pdf/print2pdf.go +++ b/print2pdf/print2pdf.go @@ -279,7 +279,7 @@ func PrintPDF(ctx context.Context, data GetPDFParams, h PDFHandler) (string, err media = data.Media } - tabCtx, tabCancel := chromedp.NewContext(browserCtx) + tabCtx, tabCancel := chromedp.NewContext(browserCtx, chromedp.WithNewBrowserContext()) defer tabCancel() // Cancel the tab context (closing the tab) if the passed context is canceled. context.AfterFunc(ctx, tabCancel)