Skip to content

Commit 5e1eef0

Browse files
committed
fix: update console method reference from globalThis to window in ConsoleCatcher
1 parent c64f091 commit 5e1eef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/addons/consoleCatcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export class ConsoleCatcher {
188188
this.isInitialized = true;
189189

190190
CONSOLE_METHODS.forEach((method) => {
191-
if (typeof globalThis.console[method] !== 'function') {
191+
if (typeof window.console[method] !== 'function') {
192192
return;
193193
}
194194

0 commit comments

Comments
 (0)