Skip to content

Add browser-specific extension links with client-side detection - #13

Merged
JakeUrban merged 1 commit into
mainfrom
claude/dreamy-edison-b3k7v6
Sep 23, 2026
Merged

JakeUrban merged 1 commit into
mainfrom
claude/dreamy-edison-b3k7v6

Conversation

@JakeUrban

@JakeUrban JakeUrban commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Implement browser detection to serve the appropriate extension store link.

resolves stellar/freighter#3015

The extension download buttons were hardcoded to the Chrome Web Store,
and the Firefox link was a "#" placeholder. Add a useExtensionLink hook
that sends Firefox users to addons.mozilla.org and everyone else to the
Chrome Web Store (which also covers Brave, Edge, Opera, etc.). The static
pre-render uses the Chrome link and swaps after hydration via
useSyncExternalStore, so there is no hydration mismatch.

Fixes stellar/freighter#3015

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GnTyuDj9Tvq7nKx3dTXZgW
@netlify

netlify Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for freighter-website ready!

Name Link
🔨 Latest commit b7548d9
🔍 Latest deploy log https://app.netlify.com/projects/freighter-website/deploys/6ab40bc17efcc000082042cd
😎 Deploy Preview https://deploy-preview-13--freighter-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@JakeUrban
JakeUrban marked this pull request as ready for review September 23, 2026 17:31
Copilot AI lite review requested due to automatic review settings September 23, 2026 17:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review effort: Lite
Findings: None

What changed in this PR

Adds browser-aware extension store links with SSR-safe client-side detection.

Changes:

  • Added Firefox extension URL and reusable detection hook.
  • Updated navigation and download CTAs with browser-specific links.
File Description
src/​lib/​use-extension-link.ts Detects the browser and selects the extension link.
src/​lib/​constants.ts Adds the Firefox Add-ons URL.
src/​components/​layout/​Navbar.tsx Uses the detected extension link.
src/​components/​home/​DownloadCards.tsx Uses the detected extension link.
src/​components/​home/​CTASection.tsx Uses the detected extension link.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@JakeUrban
JakeUrban merged commit 4b8280d into main Sep 23, 2026
9 checks passed
@JakeUrban
JakeUrban deleted the claude/dreamy-edison-b3k7v6 branch September 23, 2026 19:44
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.

Freighter browser download

4 participants