From 5a65d60f3c732a5e95b3a973534f4d2999fec8dc Mon Sep 17 00:00:00 2001 From: Jason <10588348+spraot@users.noreply.github.com> Date: Tue, 7 Jan 2025 18:12:19 +0100 Subject: [PATCH] Fix location check --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 5b457b2..a7a6524 100644 --- a/main.go +++ b/main.go @@ -228,7 +228,7 @@ func (s *Session) login(ctx context.Context) error { if err := chromedp.Location(&location).Do(ctx); err != nil { return err } - if location == "https://photos.google.com/" { + if strings.HasPrefix(location, "https://photos.google.com") { return nil } if *headlessFlag {