-
Notifications
You must be signed in to change notification settings - Fork 3
consoleCatcher init #116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consoleCatcher init #116
Conversation
src/addons/consoleCatcher.ts
Outdated
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
| args: any; | ||
| } | ||
| import type { ConsoleLogEvent } from '@hawk.so/types/build/src/base/event/addons/javascript'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| import type { ConsoleLogEvent } from '@hawk.so/types/build/src/base/event/addons/javascript'; | |
| import type { ConsoleLogEvent } from '@hawk.so/types'; |
src/addons/consoleCatcher.ts
Outdated
| }; | ||
| }); | ||
|
|
||
| window.addEventListener('error', function (event) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
think how we can reuse existing catcher errors
src/addons/consoleCatcher.ts
Outdated
| import type { ConsoleLogEvent } from '@hawk.so/types/build/src/base/event/addons/javascript'; | ||
|
|
||
| const MAX_LOGS = 20; | ||
| const consoleOutput: ConsoleLogEvent[] = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use scoped variable instead of global?
e11sy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

What's Changed?