Skip to content

Commit ca8c765

Browse files
committed
fix(Logger): Keep this reference when calling trimLogs
Signed-off-by: Marcel Klehr <[email protected]>
1 parent 796951e commit ca8c765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/Logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,6 @@ export default class Logger {
127127
}
128128
}
129129

130-
const throttledTrimLogs = throttle(20000, Logger.trimLogs)
130+
const throttledTrimLogs = throttle(20000, () => Logger.trimLogs())
131131

132132
Logger.messages = []

0 commit comments

Comments
 (0)