Skip to content

Remove debug JS error overlay from index and explore - #1902

Open
ionfwsrijan wants to merge 1 commit into
komalharshita:mainfrom
ionfwsrijan:fix/1862-remove-debug-error-overlay
Open

Remove debug JS error overlay from index and explore#1902
ionfwsrijan wants to merge 1 commit into
komalharshita:mainfrom
ionfwsrijan:fix/1862-remove-debug-error-overlay

Conversation

@ionfwsrijan

Copy link
Copy Markdown
Contributor

Problem

index.html ships a debug JS error overlay in production: global 'error' and 'unhandledrejection' listeners paint a fixed red/orange banner with the raw JS message, filename, and line number for every visitor. Any transient client-side error permanently obscures the page and leaks internal script paths. The identical overlay also exists in explore.html.

Fix

Remove the debug overlay <script> block from the of both src/templates/index.html and src/templates/explore.html. No replacement is needed — errors are already visible in the browser console.

Files changed

  • src/templates/index.html
  • src/templates/explore.html

Testing

  • GET / and GET /explore return 200; rendered HTML no longer contains the error/unhandledrejection overlay script.
  • Full suite: 522 passed, 19 pre-existing unrelated failures, 3 skipped.

Closes #1862

@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

@ionfwsrijan is attempting to deploy a commit to the komalsony234-1530's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added gssoc-2026 type:bug Something isn't working labels Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc-2026 type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: index.html ships debug JS error overlay to all visitors - red banner + raw error internals in production

1 participant