Skip to content

Commit e456100

Browse files
committed
No new logs fix
1 parent 10c95bc commit e456100

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/headless.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ func (hb *HeadlessBrowser) Logs(limit int, since int64) []ConsoleLogEntry {
270270
// If since is set, filter to entries after that timestamp
271271
if since > 0 {
272272
if len(hb.logs) == 0 || hb.logs[len(hb.logs)-1].Timestamp <= since {
273-
return nil
273+
return []ConsoleLogEntry{}
274274
}
275275
start := len(hb.logs)
276276
for i := len(hb.logs) - 1; i >= 0; i-- {

0 commit comments

Comments
 (0)