Skip to content

fix(frontend): check Freighter availability on startup#759

Merged
Haroldwonder merged 1 commit into
Haroldwonder:mainfrom
mathewsap45:fix/682-freighter-init-check
Jun 1, 2026
Merged

fix(frontend): check Freighter availability on startup#759
Haroldwonder merged 1 commit into
Haroldwonder:mainfrom
mathewsap45:fix/682-freighter-init-check

Conversation

@mathewsap45
Copy link
Copy Markdown

Summary

Closes #682

Adds a Freighter extension availability check in frontend/src/main.ts that runs after the app mounts.

Problem

Components depending on Freighter would fail silently if the extension wasn't installed, with no user-facing feedback.

Fix

  • isFreighterAvailable() checks for window.freighter
  • showFreighterBanner() injects a fixed top banner with a link to https://www.freighter.app/ when Freighter is not detected
  • Check runs after app mount so the DOM is ready

)

Add isFreighterAvailable() check after app mount. If the Freighter
extension is not detected, showFreighterBanner() injects a fixed
top banner prompting the user to install it, preventing silent
failures in components that depend on Freighter.
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

@mathewsap45 is attempting to deploy a commit to the Harold's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@mathewsap45 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Haroldwonder Haroldwonder merged commit 17dc491 into Haroldwonder:main Jun 1, 2026
1 check failed
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.

frontend/src/main.ts does not handle Freighter extension initialization errors

2 participants