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: Syntax highlighting for shared-ai conversions with CSP enabled #532

Merged
merged 1 commit into from Mar 15, 2024

Conversation

davidtaylorhq
Copy link
Member

  • Adds a nonce to both script tags
  • Removes the onload= inline script, and moves the tags to the end of the <body> instead. This provides the same UX (page will load and render, then hljs will be applied when ready)

- Adds a nonce to both script tags
- Removes the `onload=` inline script, and moves the tags to the end of the `<body>` instead. This provides the same UX (page will load and render, then hljs will be applied when ready)
@SamSaffron SamSaffron merged commit 8b0e998 into main Mar 15, 2024
5 checks passed
@SamSaffron SamSaffron deleted the csp-compat branch March 15, 2024 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants