Skip to content

fix(tonconnect): use 'browser' platform for extension#549

Open
mois-ilya wants to merge 3 commits intomainfrom
fix/PRO-411-tonconnect-platform-browser
Open

fix(tonconnect): use 'browser' platform for extension#549
mois-ilya wants to merge 3 commits intomainfrom
fix/PRO-411-tonconnect-platform-browser

Conversation

@mois-ilya
Copy link

@mois-ilya mois-ilya commented Feb 3, 2026

Summary

  • Add centralized getTonConnectPlatform(targetEnv) function for TonConnect DeviceInfo platform
  • Extension returns 'browser', other environments use browser detection
  • Make getBrowserPlatform private (internal use only)

Changes

  • core: Add getTonConnectPlatform() in connectService.ts
  • uikit: Use getTonConnectPlatform(sdk.targetEnv) in TonConnectNotification
  • extension: Use getTonConnectPlatform('extension') in both TonConnect files
  • mobile: Use getTonConnectPlatform('mobile') for consistency

Why

Platform determination was duplicated and inconsistent. Now there's a single source of truth.

Fixes PRO-411

@github-actions
Copy link

github-actions bot commented Feb 3, 2026

Successful WEB deployment 🚀🚀🚀

Well done!
Link to test environment:
https://681f4f2a.tonkeeper-web.pages.dev

@BAHRALMN16
Copy link

اهلا بك يااخي وشكرا لك ولاكن انا لا لا أفهم اينه تكون الملفات 📂 التي تتكلم عنها ممكن توضيح أكثر وشكرا علا جهجهودكم

@Anonym-tsk
Copy link

lgtm

@nvasilchuk nvasilchuk self-requested a review February 10, 2026 12:30
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.

4 participants