Skip to content

Add new translation source: Prof Sahib Singh - short - #1880

Merged
Gauravjeetsingh merged 6 commits into
masterfrom
dev
Aug 14, 2026
Merged

Gauravjeetsingh merged 6 commits into
masterfrom
dev

Conversation

@Gauravjeetsingh

Copy link
Copy Markdown
Collaborator

Pushes the newer translation source; pss-short for simplified Prof Sahib Singh translations.

divyanshugarg36 and others added 6 commits August 5, 2026 02:05
Some users (seen in Chrome) get navigator.onLine === false while actually
connected, which permanently pinned the app on the offline screen — the online
event only fires on a transition, so a false initial value never self-corrected.

- Start optimistic (store online: true) instead of trusting navigator.onLine.
- On mount, only if navigator.onLine reports offline, confirm with a real
  same-origin request (verify-online util) and set online from the result.
- Verify the offline event the same way before showing the offline screen.
Address review: the favicon HEAD only proved *a* request completed (a captive
portal, a same-origin SPA fallback, or a 4xx/5xx all returned true). Probe the
banidb API /health endpoint the app actually depends on and return response.ok,
so a real 2xx from the backend is required to consider the app online.
fix: false offline screen from unreliable navigator.onLine
@Gauravjeetsingh
Gauravjeetsingh merged commit cb96260 into master Aug 14, 2026
1 of 3 checks passed
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