Skip to content

Conversation

@antsgar
Copy link
Contributor

@antsgar antsgar commented Jun 24, 2025

Fixed errors in code editor:

  • Refused to execute inline event handler because it violates the following Content Security Policy directive: "script-src 'self', fixed by removing inline event handlers from the HTML file and setting up event listeners on the JS file instead.
  • Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self', fixed by moving contents of inline script to JS file.
  • Refused to apply inline style because it violates the following Content Security Policy directive: "style-src *"., fixed by setting style in CSS file instead of using inline styling.

This fixes the "Enable Vim mode" button not working, as well as the language dropdown/default language setter button.

@antsgar antsgar requested review from amanharwara and moughxyz June 24, 2025 03:24
@amanharwara amanharwara merged commit 7517720 into main Jun 24, 2025
1 check passed
@antsgar antsgar deleted the fix/code-editor-fixes branch June 24, 2025 13:22
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.

3 participants