Skip to content
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

fix: handle missing render function for non-JS projects #132

Merged
merged 1 commit into from
Oct 22, 2024
Merged

fix: handle missing render function for non-JS projects #132

merged 1 commit into from
Oct 22, 2024

Conversation

mboyov
Copy link
Contributor

@mboyov mboyov commented Oct 21, 2024

  • Updated ws-client.js to handle cases where the render function is not defined, preventing Uncaught ReferenceError.
  • Ensured compatibility with basic HTML/CSS projects without JavaScript by bypassing calls to missing functions.

- Updated ws-client.js to handle cases where the `render` function is
not defined, preventing `Uncaught ReferenceError`.
- Added checks for the existence of `renderKatex` and `renderMermaid`
functions before calling them, ensuring no undefined errors.
- Ensured compatibility with basic HTML/CSS projects without JavaScript
by bypassing calls to missing functions.
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your pull request! We appreciate your contribution. Please ensure that your changes are well documented and tested.

@brianhuster
Copy link
Owner

Hi, I appreciate your pull request, but can you please format the code a bit (as tabstop = 4, expandtab = false)? Thank you in advance.

Hope I will write a Github Action to auto formatting code

@brianhuster brianhuster merged commit 2f413f6 into brianhuster:main Oct 22, 2024
3 checks passed
@mboyov
Copy link
Contributor Author

mboyov commented Oct 22, 2024

Hi, I appreciate your pull request, but can you please format the code a bit (as tabstop = 4, expandtab = false)? Thank you in advance.

Hope I will write a Github Action to auto formatting code

Oh sorry about that, I'll keep it in mind for next time :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants