Skip to content

fix(frontend): show the noscript notice instead of the splash screen - #678

Merged
JuliusHenke merged 1 commit into
masterfrom
claude/project-thread-8zzd2t
Nov 3, 2026
Merged

JuliusHenke merged 1 commit into
masterfrom
claude/project-thread-8zzd2t

Conversation

@JuliusHenke

Copy link
Copy Markdown
Member

Requested by ju · project thread

Problem

With JavaScript disabled, the full-screen splash ("TorMap") never goes away and covers the default <noscript> message. Only the Lite redirect (behind VITE_LITE_ENABLED, off by default) hid the splash, so with the flag off you saw just the splash and no hint.

Change

  • index.html hides #splash in a <noscript><style> in the head, so the notice is visible with or without the Lite flag.
  • lite-redirect.ts now only injects the meta refresh (the style moved to index.html); test updated.
  • frontend/README.md explains how to try Lite and the redirect locally.

Testing

  • yarn vitest run plugins passes.
  • Chromium with JS disabled on yarn start: flag off shows "You need to enable JavaScript to run this app." without the splash; with VITE_LITE_ENABLED=true and VITE_BACKEND_API_URL=http://localhost:8080 it redirects to http://localhost:8080/lite/.

Generated by Claude Code

Without JavaScript the splash screen covered the default noscript message,
because only the Lite redirect (VITE_LITE_ENABLED) hid it. index.html now
hides the splash in a noscript style, so the notice is visible either way.
The README explains how to try TorMap Lite and the redirect locally.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SWRrkMpza8avUhoMVbQH33
@JuliusHenke JuliusHenke self-assigned this Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 9d8658b):

https://tormap-36f44--pr678-claude-project-threa-938iydnw.web.app

(expires Fri, 06 Nov 2026 17:48:45 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 0c1f71965de18e60b0e686b0d0356977fec090dc

@JuliusHenke
JuliusHenke merged commit 0dd0756 into master Nov 3, 2026
16 checks passed
@JuliusHenke
JuliusHenke deleted the claude/project-thread-8zzd2t branch November 3, 2026 18:07
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