No new logs fix

This commit is contained in:
Zef Hemel
2026-03-17 11:25:10 +01:00
parent 10c95bcba5
commit e456100b5b
+1 -1
View File
@@ -270,7 +270,7 @@ func (hb *HeadlessBrowser) Logs(limit int, since int64) []ConsoleLogEntry {
// If since is set, filter to entries after that timestamp
if since > 0 {
if len(hb.logs) == 0 || hb.logs[len(hb.logs)-1].Timestamp <= since {
return nil
return []ConsoleLogEntry{}
}
start := len(hb.logs)
for i := len(hb.logs) - 1; i >= 0; i-- {