Added debug option

This commit is contained in:
Pijus Kamandulis
2020-01-19 16:43:32 +02:00
parent 2b56584b1b
commit 38c23fd9f5
3 changed files with 5 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ func GetUserUploads(username string) []models.Upload {
opts := append(chromedp.DefaultExecAllocatorOptions[:],
chromedp.DisableGPU,
chromedp.UserDataDir(dir),
chromedp.Flag("headless", false),
chromedp.Flag("headless", models.Config.UserName),
)
allocCtx, cancel := chromedp.NewExecAllocator(context.Background(), opts...)